Skip to content

Commit

Permalink
Flush only one column family
Browse files Browse the repository at this point in the history
Summary:
Currently DBImpl::Flush() triggers flushes in all column families.
Instead we need to trigger just the column family specified.

Test Plan: make all check

Reviewers: igor, ljin, yhchiang, sdong

Reviewed By: sdong

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D20841
  • Loading branch information
StanislavGlebik committed Aug 12, 2014
1 parent 9674c11 commit 06a52bd
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 174 deletions.
4 changes: 3 additions & 1 deletion db/column_family_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,9 @@ TEST(ColumnFamilyTest, DontRollEmptyLogs) {
}
int num_writable_file_start = env_->GetNumberOfNewWritableFileCalls();
// this will trigger the flushes
ASSERT_OK(db_->Write(WriteOptions(), nullptr));
for (size_t i = 0; i <= 4; ++i) {
ASSERT_OK(Flush(i));
}

for (int i = 0; i < 4; ++i) {
dbfull()->TEST_WaitForFlushMemTable(handles_[i]);
Expand Down
Loading

0 comments on commit 06a52bd

Please sign in to comment.