From 4b785aab05912fdd9191a852840a877de023d874 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Thu, 5 Sep 2013 13:42:08 -0700 Subject: [PATCH] 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 --- utilities/ttl/db_ttl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities/ttl/db_ttl.cc b/utilities/ttl/db_ttl.cc index 9e6181f93..4569c3f97 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);