From 980a82ee2fa2c0e16b2278e9f732d50b9df7ce3c Mon Sep 17 00:00:00 2001 From: Alexey Maykov Date: Wed, 21 Oct 2015 18:34:25 -0700 Subject: [PATCH] Fix a bug in GetApproximateSizes Summary: Need to pass through the memtable parameter. Test Plan: built, tested through myrocks Reviewers: igor, sdong, rven Reviewed By: rven Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D49167 --- include/rocksdb/utilities/stackable_db.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rocksdb/utilities/stackable_db.h b/include/rocksdb/utilities/stackable_db.h index 50b5538f7..75e1da458 100644 --- a/include/rocksdb/utilities/stackable_db.h +++ b/include/rocksdb/utilities/stackable_db.h @@ -148,7 +148,8 @@ class StackableDB : public DB { virtual void GetApproximateSizes(ColumnFamilyHandle* column_family, const Range* r, int n, uint64_t* sizes, bool include_memtable = false) override { - return db_->GetApproximateSizes(column_family, r, n, sizes); + return db_->GetApproximateSizes(column_family, r, n, sizes, + include_memtable); } using DB::CompactRange;