Skip to content

Commit

Permalink
service: enable infinite bound range deletions with mc
Browse files Browse the repository at this point in the history
As soon as it's agreed that the cluster supports sstables in mc format,
infinite bound range deletions in statements can be safely enabled.

Signed-off-by: Benny Halevy <[email protected]>
  • Loading branch information
psarna authored and bhalevy committed Jun 24, 2019
1 parent e77ef84 commit c19fdc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions service/storage_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ storage_service::storage_service(distributed<database>& db, gms::gossiper& gossi
} else {
_sstables_format = sstables::sstable_version_types::mc;
}

_unbounded_range_tombstones_feature.when_enabled().then([&db] () mutable {
slogger.debug("Enabling infinite bound range deletions");
db.invoke_on_all([] (database& local_db) mutable {
local_db.enable_infinite_bound_range_deletions();
});
});
}

void storage_service::enable_all_features() {
Expand Down

0 comments on commit c19fdc4

Please sign in to comment.