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 <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2022-11-16 20:07:02 +02:00
parent d6b2124903
commit 2c677e294b

View File

@@ -407,7 +407,7 @@ public:
// using the schema_tables merge_lock.
//
// Must be called on shard 0.
future<token_metadata_lock> get_lock() noexcept {
future<token_metadata_lock> get_lock() const noexcept {
return _lock_func();
}