From 2c677e294b3e7270c12fbfcd8f0a53c86ab2fc69 Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Wed, 16 Nov 2022 20:07:02 +0200 Subject: [PATCH] shared_token_metadata: get_lock is const The lock is acquired using an a function that doesn't modify the shared_token_metadata object. Signed-off-by: Benny Halevy --- locator/token_metadata.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locator/token_metadata.hh b/locator/token_metadata.hh index a3cfc43064..1918b9f8f9 100644 --- a/locator/token_metadata.hh +++ b/locator/token_metadata.hh @@ -407,7 +407,7 @@ public: // using the schema_tables merge_lock. // // Must be called on shard 0. - future get_lock() noexcept { + future get_lock() const noexcept { return _lock_func(); }