]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Simplify bucketing logic in ldb-ttl 2.0.fb v2.0
authorMayank Agarwal <amayank@fb.com>
Thu, 20 Jun 2013 18:50:33 +0000 (11:50 -0700)
committerMayank Agarwal <amayank@fb.com>
Fri, 21 Jun 2013 16:49:24 +0000 (09:49 -0700)
commitb858da709a904eefbce23fd197f48f7bb6bf4f7e
tree0e229273b168da85db5f49fd6de4567472f2fecd
parent61f1baaedf9951a808cdf611301eef9cda8f3b22
Simplify bucketing logic in ldb-ttl

Summary: [start_time, end_time) is waht I'm following for the buckets and the whole time-range. Also cleaned up some code in db_ttl.* Not correcting the spacing/indenting convention for util/ldb_cmd.cc in this diff.

Test Plan: python ldb_test.py, make ttl_test, Run mcrocksdb-backup tool, Run the ldb tool on 2 mcrocksdb production backups form sigmafio033.prn1

Reviewers: vamsi, haobo

Reviewed By: vamsi

Differential Revision: https://reviews.facebook.net/D11433
util/ldb_cmd.cc
utilities/ttl/db_ttl.cc
utilities/ttl/db_ttl.h