Skip to content

Commit

Permalink
FIX: compaction checker condition error which cause SSTs were skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Jan 26, 2021
1 parent e1523dc commit 85cf3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compaction_checker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void CompactionChecker::PickCompactionFiles(const std::string &cf_name) {
for (const auto &iter : props) {
if (maxFilesToCompact == 0) return;
// don't compact the SST created in 1 hour
if ( iter.second->creation_time < static_cast<uint64_t>(now-3600)) continue;
if ( iter.second->creation_time > static_cast<uint64_t>(now-3600)) continue;
for (const auto &property_iter : iter.second->user_collected_properties) {
if (property_iter.first == "total_keys") {
total_keys = std::atoi(property_iter.second.data());
Expand Down

0 comments on commit 85cf3a0

Please sign in to comment.