diff options
Diffstat (limited to 'storage/rocksdb/rdb_utils.cc')
-rw-r--r-- | storage/rocksdb/rdb_utils.cc | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/storage/rocksdb/rdb_utils.cc b/storage/rocksdb/rdb_utils.cc index 6f14e5048dd..335676a6ba4 100644 --- a/storage/rocksdb/rdb_utils.cc +++ b/storage/rocksdb/rdb_utils.cc @@ -303,6 +303,18 @@ bool rdb_database_exists(const std::string &db_name) { return true; } +void rdb_log_status_error(const rocksdb::Status &s, const char *msg) { + if (msg == nullptr) { + // NO_LINT_DEBUG + sql_print_error("RocksDB: status error, code: %d, error message: %s", + s.code(), s.ToString().c_str()); + return; + } + + // NO_LINT_DEBUG + sql_print_error("RocksDB: %s, Status Code: %d, Status: %s", msg, s.code(), + s.ToString().c_str()); +} /* @brief @@ -340,18 +352,4 @@ const char *get_rocksdb_supported_compression_types() return compression_methods_buf.c_str(); } -void rdb_log_status_error(const rocksdb::Status &s, const char *msg) { - if (msg == nullptr) { - // NO_LINT_DEBUG - sql_print_error("RocksDB: status error, code: %d, error message: %s", - s.code(), s.ToString().c_str()); - return; - } - - // NO_LINT_DEBUG - sql_print_error("RocksDB: %s, Status Code: %d, Status: %s", msg, s.code(), - s.ToString().c_str()); -} - - } // namespace myrocks |