From: Mayank Agarwal Date: Thu, 5 Sep 2013 20:42:08 +0000 (-0700) Subject: Add logdata to ttl X-Git-Tag: v2.3~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4b785aab05912fdd9191a852840a877de023d874;p=rocksdb.git 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 --- diff --git a/utilities/ttl/db_ttl.cc b/utilities/ttl/db_ttl.cc index 9e6181f9..4569c3f9 100644 --- a/utilities/ttl/db_ttl.cc +++ b/utilities/ttl/db_ttl.cc @@ -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);