@@ -1333,7 +1333,7 @@ Status DBImpl::FlushMemTableToOutputFile(ColumnFamilyData* cfd,
1333
1333
1334
1334
if (s.ok () && shutting_down_.Acquire_Load () && cfd->IsDropped ()) {
1335
1335
s = Status::ShutdownInProgress (
1336
- " Column family closed during memtable flush" );
1336
+ " Database shutdown or Column family drop during flush" );
1337
1337
}
1338
1338
1339
1339
if (!s.ok ()) {
@@ -3412,7 +3412,6 @@ Status DBImpl::GetImpl(const ReadOptions& options,
3412
3412
// Done
3413
3413
RecordTick (options_.statistics .get (), MEMTABLE_HIT);
3414
3414
} else {
3415
- // Done
3416
3415
StopWatchNano from_files_timer (env_, false );
3417
3416
StartPerfTimer (&from_files_timer);
3418
3417
@@ -4055,8 +4054,6 @@ Status DBImpl::MakeRoomForWrite(ColumnFamilyData* cfd, bool force) {
4055
4054
// Yield previous error
4056
4055
s = bg_error_;
4057
4056
break ;
4058
- } else if (cfd->IsDropped ()) {
4059
- break ;
4060
4057
} else if (allow_delay && cfd->NeedSlowdownForNumLevel0Files ()) {
4061
4058
// We are getting close to hitting a hard limit on the number of
4062
4059
// L0 files. Rather than delaying a single write by several
@@ -4229,7 +4226,7 @@ Status DBImpl::MakeRoomForWrite(ColumnFamilyData* cfd, bool force) {
4229
4226
cfd->GetID (), (unsigned long )logfile_number_);
4230
4227
force = false ; // Do not force another compaction if have room
4231
4228
MaybeScheduleFlushOrCompaction ();
4232
- // TODO(icanadi) delete outside of mutex)
4229
+ // TODO(icanadi) delete outside of mutex
4233
4230
delete cfd->InstallSuperVersion (new_superversion, &mutex_);
4234
4231
}
4235
4232
}
@@ -4342,7 +4339,7 @@ Status DBImpl::DeleteFile(std::string name) {
4342
4339
}
4343
4340
4344
4341
int level;
4345
- FileMetaData * metadata;
4342
+ FileMetaData* metadata;
4346
4343
ColumnFamilyData* cfd;
4347
4344
VersionEdit edit;
4348
4345
DeletionState deletion_state (true );
0 commit comments