From b42231e5d480a518790a6858522aa7234719ca80 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 30 Sep 2016 12:45:02 +0300 Subject: [PATCH] storage_rocksdb: Clearer error when db in use --- .../cache/storage/storage_rocksdb/rocksdbstorage.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/server/modules/filter/cache/storage/storage_rocksdb/rocksdbstorage.cc b/server/modules/filter/cache/storage/storage_rocksdb/rocksdbstorage.cc index e0ca677bd..fdffe3b82 100644 --- a/server/modules/filter/cache/storage/storage_rocksdb/rocksdbstorage.cc +++ b/server/modules/filter/cache/storage/storage_rocksdb/rocksdbstorage.cc @@ -184,7 +184,7 @@ RocksDBStorage* RocksDBStorage::Create(const char* zName, uint32_t ttl, int argc if (!status.ok()) { MXS_ERROR("Could not store version information to created RocksDB database \"%s\". " - "You may need to delete the database and retry. RocksDB error: %s", + "You may need to delete the database and retry. RocksDB error: \"%s\"", path.c_str(), status.ToString().c_str()); } @@ -236,7 +236,7 @@ RocksDBStorage* RocksDBStorage::Create(const char* zName, uint32_t ttl, int argc else { MXS_ERROR("Could not read version information from RocksDB database %s. " - "You may need to delete the database and retry. RocksDB error: %s", + "You may need to delete the database and retry. RocksDB error: \"%s\"", path.c_str(), status.ToString().c_str()); delete pDb; @@ -244,8 +244,13 @@ RocksDBStorage* RocksDBStorage::Create(const char* zName, uint32_t ttl, int argc } else { - MXS_ERROR("Could not open/initialize RocksDB database %s. RocksDB error: %s", + MXS_ERROR("Could not open/initialize RocksDB database %s. RocksDB error: \"%s\"", path.c_str(), status.ToString().c_str()); + + if (status.IsIOError()) + { + MXS_ERROR("Is an other MaxScale process running?"); + } } return pStorage;