Change ColumnFamilyData from struct to class

Summary: ColumnFamilyData grew a lot, there's much more data that it holds now. It makes more sense to encapsulate it better by making it a class.

Test Plan: make check

Reviewers: dhruba, haobo, kailiu, sdong

CC: leveldb

Differential Revision: https://reviews.facebook.net/D15579
This commit is contained in:
Igor Canadi
2014-01-29 13:28:50 -08:00
parent 15999e728e
commit fa99d53e55
10 changed files with 203 additions and 183 deletions

View File

@@ -1028,7 +1028,7 @@ Status ReduceDBLevelsCommand::GetOldNumOfLevels(Options& opt,
int max = -1;
auto default_cfd = versions.GetColumnFamilySet()->GetDefault();
for (int i = 0; i < versions.NumberLevels(); i++) {
if (default_cfd->current->NumLevelFiles(i)) {
if (default_cfd->current()->NumLevelFiles(i)) {
max = i;
}
}