@ -1436,19 +1436,19 @@ TEST(DBTest, NumImmutableMemTable) {
std : : string num ;
std : : string num ;
ASSERT_OK ( dbfull ( ) - > Put ( writeOpt , " k1 " , big_value ) ) ;
ASSERT_OK ( dbfull ( ) - > Put ( writeOpt , " k1 " , big_value ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " level db.num-immutable-mem-table" , & num ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " rocks db.num-immutable-mem-table" , & num ) ) ;
ASSERT_EQ ( num , " 0 " ) ;
ASSERT_EQ ( num , " 0 " ) ;
ASSERT_OK ( dbfull ( ) - > Put ( writeOpt , " k2 " , big_value ) ) ;
ASSERT_OK ( dbfull ( ) - > Put ( writeOpt , " k2 " , big_value ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " level db.num-immutable-mem-table" , & num ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " rocks db.num-immutable-mem-table" , & num ) ) ;
ASSERT_EQ ( num , " 1 " ) ;
ASSERT_EQ ( num , " 1 " ) ;
ASSERT_OK ( dbfull ( ) - > Put ( writeOpt , " k3 " , big_value ) ) ;
ASSERT_OK ( dbfull ( ) - > Put ( writeOpt , " k3 " , big_value ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " level db.num-immutable-mem-table" , & num ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " rocks db.num-immutable-mem-table" , & num ) ) ;
ASSERT_EQ ( num , " 2 " ) ;
ASSERT_EQ ( num , " 2 " ) ;
dbfull ( ) - > Flush ( FlushOptions ( ) ) ;
dbfull ( ) - > Flush ( FlushOptions ( ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " level db.num-immutable-mem-table" , & num ) ) ;
ASSERT_TRUE ( dbfull ( ) - > GetProperty ( " rocks db.num-immutable-mem-table" , & num ) ) ;
ASSERT_EQ ( num , " 0 " ) ;
ASSERT_EQ ( num , " 0 " ) ;
} while ( ChangeCompactOptions ( ) ) ;
} while ( ChangeCompactOptions ( ) ) ;
}
}