Skip to content

Commit

Permalink
secondary instance: remove unnessisary cfds_changed->count()
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Oct 21, 2024
1 parent c0be6a4 commit 3236d19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions db/db_impl/db_impl_secondary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<FileMetaData*>& l0_files =
cfd->current()->storage_info()->LevelFiles(0);
SequenceNumber seq =
Expand Down

0 comments on commit 3236d19

Please sign in to comment.