From fd4e577db0acb1eddf1ebb8bcff6776a7e65b6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20M=C4=99drek?= Date: Mon, 18 Aug 2025 12:38:52 +0200 Subject: [PATCH] tombstone_gc: Rename get_default_tombstonesonte_gc_mode The previous identifier was probably a typo that was missed. --- cql3/statements/cf_prop_defs.cc | 2 +- tombstone_gc.cc | 2 +- tombstone_gc.hh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cql3/statements/cf_prop_defs.cc b/cql3/statements/cf_prop_defs.cc index 96dc9b94d9..e68dffb2f0 100644 --- a/cql3/statements/cf_prop_defs.cc +++ b/cql3/statements/cf_prop_defs.cc @@ -372,7 +372,7 @@ void cf_prop_defs::apply_to_builder(schema_builder& builder, schema::extensions_ } // Set default tombstone_gc mode. if (!schema_extensions.contains(tombstone_gc_extension::NAME)) { - auto ext = seastar::make_shared(get_default_tombstonesonte_gc_mode(db, ks_name)); + auto ext = seastar::make_shared(get_default_tombstone_gc_mode(db, ks_name)); schema_extensions.emplace(tombstone_gc_extension::NAME, std::move(ext)); } builder.set_extensions(std::move(schema_extensions)); diff --git a/tombstone_gc.cc b/tombstone_gc.cc index 96c154e9f0..8a5ef21bf1 100644 --- a/tombstone_gc.cc +++ b/tombstone_gc.cc @@ -278,7 +278,7 @@ static bool requires_repair_before_gc(data_dictionary::database db, sstring ks_n return rs.uses_tablets() && needs_repair_before_gc(*real_db_ptr, ks_name); } -std::map get_default_tombstonesonte_gc_mode(data_dictionary::database db, sstring ks_name) { +std::map get_default_tombstone_gc_mode(data_dictionary::database db, sstring ks_name) { return {{"mode", requires_repair_before_gc(db, ks_name) ? "repair" : "timeout"}}; } diff --git a/tombstone_gc.hh b/tombstone_gc.hh index 8198e669cf..6e28511fab 100644 --- a/tombstone_gc.hh +++ b/tombstone_gc.hh @@ -154,5 +154,5 @@ public: [[nodiscard]] tombstone_gc_state with_commitlog_check_disabled() const { return tombstone_gc_state(_shared_state, false); } }; -std::map get_default_tombstonesonte_gc_mode(data_dictionary::database db, sstring ks_name); +std::map get_default_tombstone_gc_mode(data_dictionary::database db, sstring ks_name); void validate_tombstone_gc_options(const tombstone_gc_options* options, data_dictionary::database db, sstring ks_name);