]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/bluestore/BlueRocksEnv.h
import ceph pacific 16.2.5
[ceph.git] / ceph / src / os / bluestore / BlueRocksEnv.h
index 82cffcd809bdd27d7313c38b3a6c715cdc576ec4..62bcddcf67626e4e802081849d1f3b0ff46be352 100644 (file)
 class BlueFS;
 
 class BlueRocksEnv : public rocksdb::EnvWrapper {
-  void split(const std::string &fn, std::string *dir, std::string *file) {
-    size_t slash = fn.rfind('/');
-    *file = fn.substr(slash + 1);
-    while (slash && fn[slash-1] == '/')
-      --slash;
-    *dir = fn.substr(0, slash);
-  }
-
 public:
   // Create a brand new sequentially-readable file with the specified name.
   // On success, stores a pointer to the new file in *result and returns OK.