From ad8b0649ffcf54fa96eddfe6266a35fd2c35203b Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Mon, 3 Feb 2025 17:00:46 +0200 Subject: [PATCH] feature_service: add TABLET_OPTIONS cluster schema feature To be used for enabling per-table tablet options. Signed-off-by: Benny Halevy --- db/schema_features.hh | 6 +++++- gms/feature_service.cc | 1 + gms/feature_service.hh | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/db/schema_features.hh b/db/schema_features.hh index 2219772007..d0a4bb1c96 100644 --- a/db/schema_features.hh +++ b/db/schema_features.hh @@ -30,6 +30,9 @@ enum class schema_feature { // Unused. Defined for backward compatibility only IN_MEMORY_TABLES, + + // Per-table tablet options + TABLET_OPTIONS, }; using schema_features = enum_set>; } diff --git a/gms/feature_service.cc b/gms/feature_service.cc index d687369028..8f3ff69ad0 100644 --- a/gms/feature_service.cc +++ b/gms/feature_service.cc @@ -237,6 +237,7 @@ db::schema_features feature_service::cluster_schema_features() const { f.set_if(table_digest_insensitive_to_expiry); f.set_if(group0_schema_versioning); f.set_if(bool(in_memory_tables)); + f.set_if(bool(tablet_options)); return f; } diff --git a/gms/feature_service.hh b/gms/feature_service.hh index 1807d73719..6dcfce05d7 100644 --- a/gms/feature_service.hh +++ b/gms/feature_service.hh @@ -163,6 +163,7 @@ public: gms::feature workload_prioritization { *this, "WORKLOAD_PRIORITIZATION"sv }; gms::feature file_stream { *this, "FILE_STREAM"sv }; gms::feature compression_dicts { *this, "COMPRESSION_DICTS"sv }; + gms::feature tablet_options { *this, "TABLET_OPTIONS"sv }; public: const std::unordered_map>& registered_features() const;