]>
git.proxmox.com Git - ceph.git/blob - ceph/src/kv/KeyValueDB.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #include "KeyValueDB.h"
5 #include "RocksDBStore.h"
10 KeyValueDB
*KeyValueDB::create(CephContext
*cct
, const string
& type
,
12 map
<string
,string
> options
,
15 if (type
== "rocksdb") {
16 return new RocksDBStore(cct
, dir
, options
, p
);
21 int KeyValueDB::test_init(const string
& type
, const string
& dir
)
23 if (type
== "rocksdb") {
24 return RocksDBStore::_test_init(dir
);