|
|
|
@ -20,9 +20,6 @@ AdaptiveTableFactory::AdaptiveTableFactory( |
|
|
|
|
block_based_table_factory_(block_based_table_factory), |
|
|
|
|
plain_table_factory_(plain_table_factory), |
|
|
|
|
cuckoo_table_factory_(cuckoo_table_factory) { |
|
|
|
|
if (!table_factory_to_write_) { |
|
|
|
|
table_factory_to_write_ = block_based_table_factory_; |
|
|
|
|
} |
|
|
|
|
if (!plain_table_factory_) { |
|
|
|
|
plain_table_factory_.reset(NewPlainTableFactory()); |
|
|
|
|
} |
|
|
|
@ -32,6 +29,9 @@ AdaptiveTableFactory::AdaptiveTableFactory( |
|
|
|
|
if (!cuckoo_table_factory_) { |
|
|
|
|
cuckoo_table_factory_.reset(NewCuckooTableFactory()); |
|
|
|
|
} |
|
|
|
|
if (!table_factory_to_write_) { |
|
|
|
|
table_factory_to_write_ = block_based_table_factory_; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extern const uint64_t kPlainTableMagicNumber; |
|
|
|
|