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:
parent
aa5c897d42
commit
4b785aab05
@ -205,6 +205,9 @@ Status DBWithTTL::Write(const WriteOptions& opts, WriteBatch* updates) {
|
||||
virtual void Delete(const Slice& key) {
|
||||
updates_ttl.Delete(key);
|
||||
}
|
||||
virtual void LogData(const Slice& blob) {
|
||||
updates_ttl.PutLogData(blob);
|
||||
}
|
||||
};
|
||||
Handler handler;
|
||||
updates->Iterate(&handler);
|
||||
|
Loading…
x
Reference in New Issue
Block a user