`
lobin
  • 浏览: 382121 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Ceph 文件存储、对象存储、内存存储、KV存储支持:ObjectStore::create

 
阅读更多
ObjectStore *ObjectStore::create(CephContext *cct,
				 const string& type,
				 const string& data,
				 const string& journal,
			         osflagbits_t flags)
{
  if (type == "filestore") {
    return new FileStore(data, journal, flags);
  }
  if (type == "memstore") {
    return new MemStore(cct, data);
  }
  if (type == "keyvaluestore" &&
      cct->check_experimental_feature_enabled("keyvaluestore")) {
    return new KeyValueStore(data);
  }
#if defined(HAVE_LIBAIO)
  if (type == "newstore" &&
      cct->check_experimental_feature_enabled("newstore")) {
    return new NewStore(cct, data);
  }
#endif
  return NULL;
}

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics