]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
remove unused get_info_log_level, and unneeded include files
authorPan Liu <pan.liu@istuary.com>
Mon, 14 Nov 2016 07:05:46 +0000 (15:05 +0800)
committerPan Liu <pan.liu@istuary.com>
Mon, 14 Nov 2016 07:05:46 +0000 (15:05 +0800)
Signed-off-by: Pan Liu <pan.liu@istuary.com>
src/kv/RocksDBStore.cc
src/kv/RocksDBStore.h
src/os/bluestore/BlueStore.cc
src/os/bluestore/KernelDevice.cc

index 32807b5eb1ea9b908f03ad760fdf9a343f8824b5..0ab97cdc7dd7dd031c650e0f6b9b50321ec312cc 100644 (file)
@@ -463,22 +463,6 @@ int RocksDBStore::submit_transaction_sync(KeyValueDB::Transaction t)
 
   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)
 {
index 6c43bf1eb71e76a03ef469b4c20af0994f917760..783ca7609fa4f9bf23ed311b96c81d9265912f7f 100644 (file)
@@ -115,7 +115,6 @@ public:
   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),
index 00a3e879a3cf30df14ed8390fc4ec3cb491114b0..516bd363a65c2135b7369311cc08009528fd4f5b 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <unistd.h>
 
 #include "BlueStore.h"
 #include "kv.h"
index e5e322c28c61e08df76b7d2b7719552f570e9dc1..c3eacd9fef96924f0096ebcf683becd4f6d65849 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <unistd.h>
 
 #include "KernelDevice.h"
 #include "include/types.h"