]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/include/rocksdb/utilities/utility_db.h
buildsys: change download over to reef release
[ceph.git] / ceph / src / rocksdb / include / rocksdb / utilities / utility_db.h
CommitLineData
f67539c2 1// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
7c673cae
FG
2// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file. See the AUTHORS file for names of contributors.
5
6#pragma once
7#ifndef ROCKSDB_LITE
7c673cae 8#include <string>
494da23a 9#include <vector>
7c673cae 10
7c673cae 11#include "rocksdb/db.h"
494da23a
TL
12#include "rocksdb/utilities/db_ttl.h"
13#include "rocksdb/utilities/stackable_db.h"
7c673cae 14
f67539c2 15namespace ROCKSDB_NAMESPACE {
7c673cae
FG
16
17// Please don't use this class. It's deprecated
18class UtilityDB {
19 public:
20 // This function is here only for backwards compatibility. Please use the
21 // functions defined in DBWithTTl (rocksdb/utilities/db_ttl.h)
22 // (deprecated)
23#if defined(__GNUC__) || defined(__clang__)
24 __attribute__((deprecated))
25#elif _WIN32
494da23a 26 __declspec(deprecated)
7c673cae 27#endif
494da23a
TL
28 static Status
29 OpenTtlDB(const Options& options, const std::string& name,
30 StackableDB** dbptr, int32_t ttl = 0, bool read_only = false);
7c673cae
FG
31};
32
f67539c2 33} // namespace ROCKSDB_NAMESPACE
7c673cae 34#endif // ROCKSDB_LITE