• Y
    Introduce GetIntProperty("rocksdb.size-all-mem-tables") · df79eafc
    Yueh-Hsuan Chiang 提交于
    Summary:
    Currently, GetIntProperty("rocksdb.cur-size-all-mem-tables") only returns
    the memory usage by those memtables which have not yet been flushed.
    
    This patch introduces GetIntProperty("rocksdb.size-all-mem-tables"),
    which includes the memory usage by all the memtables, includes those
    have been flushed but pinned by iterators.
    
    Test Plan: Added a test in db_test
    
    Reviewers: igor, anthony, IslamAbdelRahman, sdong
    
    Reviewed By: sdong
    
    Subscribers: dhruba, leveldb
    
    Differential Revision: https://reviews.facebook.net/D44229
    df79eafc
internal_stats.cc 27.7 KB