blob: bb73c34787f126e7cd36c36dd79f195c5545a525 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "futurized_store.h"
#include "cyanstore/cyan_store.h"
#include "alienstore/alien_store.h"
namespace crimson::os {
std::unique_ptr<FuturizedStore>
FuturizedStore::create(const std::string& type,
const std::string& data,
const ConfigValues& values)
{
if (type == "memstore") {
return std::make_unique<crimson::os::CyanStore>(data);
} else if (type == "bluestore") {
return std::make_unique<crimson::os::AlienStore>(data, values);
} else {
ceph_abort_msgf("unsupported objectstore type: %s", type.c_str());
return {};
}
}
}
|