]> git.proxmox.com Git - ceph.git/blob - ceph/src/kv/KeyValueDB.cc
bump version to 18.2.4-pve3
[ceph.git] / 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
3
4 #include "KeyValueDB.h"
5 #include "RocksDBStore.h"
6
7 using std::map;
8 using std::string;
9
10 KeyValueDB *KeyValueDB::create(CephContext *cct, const string& type,
11 const string& dir,
12 map<string,string> options,
13 void *p)
14 {
15 if (type == "rocksdb") {
16 return new RocksDBStore(cct, dir, options, p);
17 }
18 return NULL;
19 }
20
21 int KeyValueDB::test_init(const string& type, const string& dir)
22 {
23 if (type == "rocksdb") {
24 return RocksDBStore::_test_init(dir);
25 }
26 return -EINVAL;
27 }