Remove useless mutex from BackendInterface and its usage from CassandraBackend (#326)

Fixes #304
This commit is contained in:
Alex Kremer
2022-09-28 01:28:18 +02:00
committed by GitHub
parent d4a9560c3f
commit 3de421c390
2 changed files with 0 additions and 4 deletions

View File

@@ -89,9 +89,6 @@ protected:
std::optional<LedgerRange> range;
SimpleCache cache_;
// mutex used for open() and close()
mutable std::mutex mutex_;
public:
BackendInterface(boost::json::object const& config)
{

View File

@@ -1001,7 +1001,6 @@ CassandraBackend::open(bool readOnly)
BOOST_LOG_TRIVIAL(info) << "Opening Cassandra Backend";
std::lock_guard<std::mutex> lock(mutex_);
CassCluster* cluster = cass_cluster_new();
if (!cluster)
throw std::runtime_error("nodestore:: Failed to create CassCluster");