tombstone_gc: Rename get_default_tombstonesonte_gc_mode

The previous identifier was probably a typo that was missed.
This commit is contained in:
Dawid Mędrek
2025-08-18 12:38:52 +02:00
parent e2c99436cf
commit fd4e577db0
3 changed files with 3 additions and 3 deletions

View File

@@ -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<tombstone_gc_extension>(get_default_tombstonesonte_gc_mode(db, ks_name));
auto ext = seastar::make_shared<tombstone_gc_extension>(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));

View File

@@ -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<sstring, sstring> get_default_tombstonesonte_gc_mode(data_dictionary::database db, sstring ks_name) {
std::map<sstring, sstring> get_default_tombstone_gc_mode(data_dictionary::database db, sstring ks_name) {
return {{"mode", requires_repair_before_gc(db, ks_name) ? "repair" : "timeout"}};
}

View File

@@ -154,5 +154,5 @@ public:
[[nodiscard]] tombstone_gc_state with_commitlog_check_disabled() const { return tombstone_gc_state(_shared_state, false); }
};
std::map<sstring, sstring> get_default_tombstonesonte_gc_mode(data_dictionary::database db, sstring ks_name);
std::map<sstring, sstring> 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);