From 14f413760246685b376166209eba1a3324d706e4 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Fri, 24 Jul 2015 16:29:05 -0700 Subject: [PATCH] Correct the comment of DB::GetApproximateSizes Summary: Correct the comment of DB::GetApproximateSizes Test Plan: no code change Reviewers: igor, anthony, IslamAbdelRahman, kradhakrishnan, sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D42939 --- include/rocksdb/db.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/rocksdb/db.h b/include/rocksdb/db.h index 5ad1a390f..bcd170796 100644 --- a/include/rocksdb/db.h +++ b/include/rocksdb/db.h @@ -405,7 +405,9 @@ class DB { // if the user data compresses by a factor of ten, the returned // sizes will be one-tenth the size of the corresponding user data size. // - // The results may not include the sizes of recently written data. + // If include_memtable is set to true, then the result will also + // include those recently written data in the mem-tables if + // the mem-table type supports it. virtual void GetApproximateSizes(ColumnFamilyHandle* column_family, const Range* range, int n, uint64_t* sizes, bool include_memtable = false) = 0;