]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/util/file_util.h
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / rocksdb / util / file_util.h
index 5c05c9def6ec99b8b9796f9ccb20b411a85bb615..c3b365c8bc3b09bb64d292835e9f42a7d588f0bc 100644 (file)
@@ -10,6 +10,7 @@
 #include "rocksdb/env.h"
 #include "rocksdb/status.h"
 #include "rocksdb/types.h"
+#include "util/filename.h"
 
 namespace rocksdb {
 // use_fsync maps to options.use_fsync, which determines the way that
@@ -21,8 +22,9 @@ extern Status CopyFile(Env* env, const std::string& source,
 extern Status CreateFile(Env* env, const std::string& destination,
                          const std::string& contents, bool use_fsync);
 
-extern Status DeleteSSTFile(const ImmutableDBOptions* db_options,
-                            const std::string& fname,
-                            const std::string& path_to_sync);
+extern Status DeleteDBFile(const ImmutableDBOptions* db_options,
+                           const std::string& fname,
+                           const std::string& path_to_sync,
+                           const bool force_bg = false);
 
 }  // namespace rocksdb