Signed-off-by: Pan Liu <pan.liu@istuary.com>
return s.ok() ? 0 : -1;
}
-int RocksDBStore::get_info_log_level(string info_log_level)
-{
- if (info_log_level == "debug") {
- return 0;
- } else if (info_log_level == "info") {
- return 1;
- } else if (info_log_level == "warn") {
- return 2;
- } else if (info_log_level == "error") {
- return 3;
- } else if (info_log_level == "fatal") {
- return 4;
- } else {
- return 1;
- }
-}
RocksDBStore::RocksDBTransactionImpl::RocksDBTransactionImpl(RocksDBStore *_db)
{
void compact_range_async(const string& prefix, const string& start, const string& end) {
compact_range_async(combine_strings(prefix, start), combine_strings(prefix, end));
}
- int get_info_log_level(string info_log_level);
RocksDBStore(CephContext *c, const string &path, void *p) :
cct(c),
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <unistd.h>
#include "BlueStore.h"
#include "kv.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <unistd.h>
#include "KernelDevice.h"
#include "include/types.h"