mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
Start with coarse control: 1) converting the run_with_write_api_lock operations: join_ring, start_gossiping, stop_gossiping, start_rpc_server, stop_rpc_server, start_native_transport, stop_native_transport, decommission, remove_node, drain, move, rebuild to use run_with_api_lock which uses a flag to indicate current operation in progress. If one of the above operation is in progress when admin issues another opeartion we return a "try again" exception to avoid running two operations in parallel. 2) converting the run_with_read_api_lock to use no lock. Fixes #850. Message-Id: <00782b601028ed87437e5decae382f72dff634f6.1456758391.git.asias@scylladb.com>