[column families] Move memtable and immutable memtable list to column family data

Summary: All memtables and immutable memtables are moved from DBImpl to ColumnFamilyData. For now, they are all referenced from default column family in DBImpl. It shouldn't be hard to get them from custom column family.

Test Plan: make check

Reviewers: dhruba, kailiu, sdong

CC: leveldb

Differential Revision: https://reviews.facebook.net/D15459
This commit is contained in:
Igor Canadi
2014-01-24 14:30:28 -08:00
parent ae16606f98
commit eb055609e4
16 changed files with 256 additions and 216 deletions

View File

@@ -371,7 +371,8 @@ class MemTableConstructor: public Constructor {
table_factory_(new SkipListFactory) {
Options options;
options.memtable_factory = table_factory_;
memtable_ = new MemTable(internal_comparator_, options);
memtable_ =
new MemTable(internal_comparator_, ColumnFamilyOptions(options));
memtable_->Ref();
}
~MemTableConstructor() {