]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Add logdata to ttl
authorMayank Agarwal <amayank@fb.com>
Thu, 5 Sep 2013 20:42:08 +0000 (13:42 -0700)
committerMayank Agarwal <amayank@fb.com>
Thu, 5 Sep 2013 20:52:47 +0000 (13:52 -0700)
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

utilities/ttl/db_ttl.cc

index 9e6181f93117304d8adfcbd6d39fe1f1c349934a..4569c3f97f9e7fc765f08dc2bc199f4b31432307 100644 (file)
@@ -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);