Add logdata to ttl

Summary: Ttl-write makes a new writebatch and calls Write on the base db. It should recognize LogData also

Test Plan: make

Reviewers: dhruba, haobo

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D12747
main
Mayank Agarwal 11 years ago
parent aa5c897d42
commit 4b785aab05
  1. 3
      utilities/ttl/db_ttl.cc

@ -205,6 +205,9 @@ Status DBWithTTL::Write(const WriteOptions& opts, WriteBatch* updates) {
virtual void Delete(const Slice& key) { virtual void Delete(const Slice& key) {
updates_ttl.Delete(key); updates_ttl.Delete(key);
} }
virtual void LogData(const Slice& blob) {
updates_ttl.PutLogData(blob);
}
}; };
Handler handler; Handler handler;
updates->Iterate(&handler); updates->Iterate(&handler);

Loading…
Cancel
Save