1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Merge MyRocks merge tree into bb-10.2-mariarocks, unfinished.

It compiles on Linux but fails a lot of tests still
This commit is contained in:
Sergei Petrunia
2017-07-29 10:06:09 +00:00
202 changed files with 13648 additions and 2513 deletions

View File

@@ -23,7 +23,7 @@
#include <array>
#include <string>
#include <vector>
#include <sstream> //psergey-merge
#include <sstream>
/* C standard header files */
#include <ctype.h>
@@ -340,4 +340,18 @@ 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