@ -136,7 +136,7 @@ TEST_F(MemTableListTest, GetTest) {
WriteBufferManager wb ( options . db_write_buffer_size ) ;
WriteBufferManager wb ( options . db_write_buffer_size ) ;
MemTable * mem = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb ,
MemTable * mem = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb ,
kMaxSequenceNumber ) ;
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
mem - > Ref ( ) ;
mem - > Ref ( ) ;
// Write some keys to this memtable.
// Write some keys to this memtable.
@ -175,7 +175,7 @@ TEST_F(MemTableListTest, GetTest) {
// Create another memtable and write some keys to it
// Create another memtable and write some keys to it
WriteBufferManager wb2 ( options . db_write_buffer_size ) ;
WriteBufferManager wb2 ( options . db_write_buffer_size ) ;
MemTable * mem2 = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb2 ,
MemTable * mem2 = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb2 ,
kMaxSequenceNumber ) ;
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
mem2 - > Ref ( ) ;
mem2 - > Ref ( ) ;
mem2 - > Add ( + + seq , kTypeDeletion , " key1 " , " " ) ;
mem2 - > Add ( + + seq , kTypeDeletion , " key1 " , " " ) ;
@ -243,7 +243,7 @@ TEST_F(MemTableListTest, GetFromHistoryTest) {
WriteBufferManager wb ( options . db_write_buffer_size ) ;
WriteBufferManager wb ( options . db_write_buffer_size ) ;
MemTable * mem = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb ,
MemTable * mem = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb ,
kMaxSequenceNumber ) ;
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
mem - > Ref ( ) ;
mem - > Ref ( ) ;
// Write some keys to this memtable.
// Write some keys to this memtable.
@ -321,7 +321,7 @@ TEST_F(MemTableListTest, GetFromHistoryTest) {
// Create another memtable and write some keys to it
// Create another memtable and write some keys to it
WriteBufferManager wb2 ( options . db_write_buffer_size ) ;
WriteBufferManager wb2 ( options . db_write_buffer_size ) ;
MemTable * mem2 = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb2 ,
MemTable * mem2 = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb2 ,
kMaxSequenceNumber ) ;
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
mem2 - > Ref ( ) ;
mem2 - > Ref ( ) ;
mem2 - > Add ( + + seq , kTypeDeletion , " key1 " , " " ) ;
mem2 - > Add ( + + seq , kTypeDeletion , " key1 " , " " ) ;
@ -346,7 +346,7 @@ TEST_F(MemTableListTest, GetFromHistoryTest) {
// Add a third memtable to push the first memtable out of the history
// Add a third memtable to push the first memtable out of the history
WriteBufferManager wb3 ( options . db_write_buffer_size ) ;
WriteBufferManager wb3 ( options . db_write_buffer_size ) ;
MemTable * mem3 = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb3 ,
MemTable * mem3 = new MemTable ( cmp , ioptions , MutableCFOptions ( options ) , & wb3 ,
kMaxSequenceNumber ) ;
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
mem3 - > Ref ( ) ;
mem3 - > Ref ( ) ;
list . Add ( mem3 , & to_delete ) ;
list . Add ( mem3 , & to_delete ) ;
ASSERT_EQ ( 1 , list . NumNotFlushed ( ) ) ;
ASSERT_EQ ( 1 , list . NumNotFlushed ( ) ) ;
@ -420,7 +420,7 @@ TEST_F(MemTableListTest, FlushPendingTest) {
MutableCFOptions mutable_cf_options ( options ) ;
MutableCFOptions mutable_cf_options ( options ) ;
for ( int i = 0 ; i < num_tables ; i + + ) {
for ( int i = 0 ; i < num_tables ; i + + ) {
MemTable * mem = new MemTable ( cmp , ioptions , mutable_cf_options , & wb ,
MemTable * mem = new MemTable ( cmp , ioptions , mutable_cf_options , & wb ,
kMaxSequenceNumber ) ;
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
mem - > Ref ( ) ;
mem - > Ref ( ) ;
std : : string value ;
std : : string value ;