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
This commit is contained in:
Mayank Agarwal 2013-09-05 13:42:08 -07:00
parent aa5c897d42
commit 4b785aab05

View File

@ -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);