]>
git.proxmox.com Git - ceph.git/blob - 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.
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.
12 #include "rocksdb/convenience.h"
14 #include "db/db_impl.h"
18 void CancelAllBackgroundWork(DB
* db
, bool wait
) {
19 (dynamic_cast<DBImpl
*>(db
->GetRootDB()))->CancelAllBackgroundWork(wait
);
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
);
28 } // namespace rocksdb
30 #endif // ROCKSDB_LITE