sdong 40f562e747 Allow GetApproximateSize() to include mem table size if it is skip list memtable
Summary:
Add an option in GetApproximateSize() so that the result will include estimated sizes in mem tables.
To implement it, implement an estimated count from the beginning to a key in skip list. The approach is to count to find the entry, how many Next() is issued from each level, and sum them with a weight that is <branching factor> ^ <level>.

Test Plan: Add a test case

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D40119
2015-06-16 18:13:23 -07:00
..
c.h
2015-06-10 00:12:33 -07:00
2015-04-23 12:10:36 -07:00
2015-06-11 20:42:18 -07:00
2015-04-23 21:33:44 -07:00
2015-05-29 14:36:35 -07:00
2015-05-07 13:27:14 -07:00