diff --git a/service/storage_service.hh b/service/storage_service.hh index 26f56af7d8..5e485573c9 100644 --- a/service/storage_service.hh +++ b/service/storage_service.hh @@ -53,8 +53,9 @@ #include "core/semaphore.hh" #include "utils/fb_utilities.hh" #include "database.hh" -#include #include "streaming/stream_state.hh" +#include +#include namespace transport { class cql_server; @@ -103,6 +104,7 @@ private: shared_ptr _lb; shared_ptr> _cql_server; shared_ptr> _thrift_server; + rwlock _api_lock; public: storage_service(distributed& db) : _db(db) { @@ -128,6 +130,10 @@ public: distributed& db() { return _db; } + + rwlock& api_lock() { + return _api_lock; + }; private: bool is_auto_bootstrap(); inet_address get_broadcast_address() {