]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/db/convenience.cc
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / db / convenience.cc
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
5 //
6 // Copyright (c) 2012 Facebook.
7 // Use of this source code is governed by a BSD-style license that can be
8 // found in the LICENSE file.
9
10 #ifndef ROCKSDB_LITE
11
12 #include "rocksdb/convenience.h"
13
14 #include "db/db_impl.h"
15
16 namespace rocksdb {
17
18 void CancelAllBackgroundWork(DB* db, bool wait) {
19 (dynamic_cast<DBImpl*>(db->GetRootDB()))->CancelAllBackgroundWork(wait);
20 }
21
22 Status DeleteFilesInRange(DB* db, ColumnFamilyHandle* column_family,
23 const Slice* begin, const Slice* end) {
24 return (dynamic_cast<DBImpl*>(db))
25 ->DeleteFilesInRange(column_family, begin, end);
26 }
27
28 } // namespace rocksdb
29
30 #endif // ROCKSDB_LITE