Clean job_context

main
Igor Canadi 10 years ago
parent 0ce38fe983
commit 23295b74b6
  1. 1
      db/db_filesnapshot.cc
  2. 2
      db/flush_job_test.cc

@ -69,6 +69,7 @@ Status DBImpl::EnableFileDeletions(bool force) {
if (should_purge_files) {
PurgeObsoleteFiles(job_context);
}
job_context.Clean();
LogFlush(db_options_.info_log);
return Status::OK();
}

@ -85,6 +85,7 @@ TEST(FlushJobTest, Empty) {
SequenceNumber(), &job_context, nullptr, nullptr,
kNoCompression, nullptr);
ASSERT_OK(flush_job.Run());
job_context.Clean();
}
TEST(FlushJobTest, NonEmpty) {
@ -113,6 +114,7 @@ TEST(FlushJobTest, NonEmpty) {
ASSERT_OK(flush_job.Run());
mutex_.Unlock();
mock_table_factory_->AssertSingleFile(inserted_keys);
job_context.Clean();
}
} // namespace rocksdb

Loading…
Cancel
Save