main
Igor Canadi 10 years ago
parent 6c1b040cc9
commit 04ca7481d2
  1. 4
      db/compaction.h
  2. 4
      db/compaction_job_test.cc

@ -189,8 +189,8 @@ class Compaction {
CompressionType output_compression, bool seek_compaction = false,
bool deletion_compaction = false);
CompactionInputFiles* TEST_GetInputFiles(int level) {
return &inputs_[level];
CompactionInputFiles* TEST_GetInputFiles(int l) {
return &inputs_[l];
}
private:

@ -164,7 +164,9 @@ TEST(CompactionJobTest, Simple) {
mutex_.Unlock();
ASSERT_OK(compaction_job.Run());
mutex_.Lock();
compaction_job.Install(Status::OK(), &mutex_);
Status s;
compaction_job.Install(&s, &mutex_);
ASSERT_OK(s);
mutex_.Unlock();
mock_table_factory_->AssertLatestFile(expected_results);

Loading…
Cancel
Save