From a72025bbf6e22f46d97edff89e67499592b6dc80 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Thu, 11 Dec 2025 22:41:45 -0300 Subject: [PATCH] replica: Document old add_sstable_and_update_cache() variants Signed-off-by: Raphael S. Carvalho --- replica/database.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/replica/database.hh b/replica/database.hh index 60b415b950..40a2279ce9 100644 --- a/replica/database.hh +++ b/replica/database.hh @@ -604,6 +604,10 @@ public: data_dictionary::table as_data_dictionary() const; + // The usage of these functions are restricted to preexisting sstables that aren't being + // moved anywhere, so should never be used in the context of file streaming and intra + // node migration. The only user today is distributed loader, which populates the + // sstables for each column family on boot. future<> add_sstable_and_update_cache(sstables::shared_sstable sst, sstables::offstrategy offstrategy = sstables::offstrategy::no); future<> add_sstables_and_update_cache(const std::vector& ssts);