diff --git a/db/db_impl/db_impl_secondary.cc b/db/db_impl/db_impl_secondary.cc index 93ac5c38cb..d333b70d4c 100644 --- a/db/db_impl/db_impl_secondary.cc +++ b/db/db_impl/db_impl_secondary.cc @@ -247,9 +247,7 @@ Status DBImplSecondary::RecoverLogFiles( if (cfd == nullptr) { continue; } - if (cfds_changed->count(cfd) == 0) { - cfds_changed->insert(cfd); - } + cfds_changed->insert(cfd); const std::vector& l0_files = cfd->current()->storage_info()->LevelFiles(0); SequenceNumber seq =