@ -138,7 +138,7 @@ class DBImpl : public DB {
using DB : : GetApproximateSizes ;
using DB : : GetApproximateSizes ;
virtual void GetApproximateSizes ( ColumnFamilyHandle * column_family ,
virtual void GetApproximateSizes ( ColumnFamilyHandle * column_family ,
const Range * range , int n , uint64_t * sizes ,
const Range * range , int n , uint64_t * sizes ,
uint8_t include_flags
uint8_t include_flags
= INCLUDE_FILES ) override ;
= INCLUDE_FILES ) override ;
using DB : : CompactRange ;
using DB : : CompactRange ;
virtual Status CompactRange ( const CompactRangeOptions & options ,
virtual Status CompactRange ( const CompactRangeOptions & options ,
@ -431,9 +431,6 @@ class DBImpl : public DB {
// mutex is held.
// mutex is held.
SuperVersion * GetAndRefSuperVersion ( uint32_t column_family_id ) ;
SuperVersion * GetAndRefSuperVersion ( uint32_t column_family_id ) ;
// Same as above, should called without mutex held and not on write thread.
SuperVersion * GetAndRefSuperVersionUnlocked ( uint32_t column_family_id ) ;
// Un-reference the super version and return it to thread local cache if
// Un-reference the super version and return it to thread local cache if
// needed. If it is the last reference of the super version. Clean it up
// needed. If it is the last reference of the super version. Clean it up
// after un-referencing it.
// after un-referencing it.
@ -444,18 +441,11 @@ class DBImpl : public DB {
// REQUIRED: this function should only be called on the write thread.
// REQUIRED: this function should only be called on the write thread.
void ReturnAndCleanupSuperVersion ( uint32_t colun_family_id , SuperVersion * sv ) ;
void ReturnAndCleanupSuperVersion ( uint32_t colun_family_id , SuperVersion * sv ) ;
// Same as above, should called without mutex held and not on write thread.
void ReturnAndCleanupSuperVersionUnlocked ( uint32_t colun_family_id ,
SuperVersion * sv ) ;
// REQUIRED: this function should only be called on the write thread or if the
// REQUIRED: this function should only be called on the write thread or if the
// mutex is held. Return value only valid until next call to this function or
// mutex is held. Return value only valid until next call to this function or
// mutex is released.
// mutex is released.
ColumnFamilyHandle * GetColumnFamilyHandle ( uint32_t column_family_id ) ;
ColumnFamilyHandle * GetColumnFamilyHandle ( uint32_t column_family_id ) ;
// Same as above, should called without mutex held and not on write thread.
ColumnFamilyHandle * GetColumnFamilyHandleUnlocked ( uint32_t column_family_id ) ;
// Returns the number of currently running flushes.
// Returns the number of currently running flushes.
// REQUIREMENT: mutex_ must be held when calling this function.
// REQUIREMENT: mutex_ must be held when calling this function.
int num_running_flushes ( ) {
int num_running_flushes ( ) {