}
}
+ if (op == "import" && pgidstr.length()) {
+ cerr << "--pgid option invalid with import" << std::endl;
+ return 1;
+ }
+
ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
if (fs == NULL) {
cerr << "Must provide --type (filestore, memstore, keyvaluestore-dev)" << std::endl;
return 1;
}
- if (op == "import" && pgidstr.length()) {
- cerr << "--pgid option invalid with import" << std::endl;
- return 1;
- }
-
if (op != "list" && vm.count("object")) {
json_spirit::Value v;
try {
ss << "Decode object json error: " << e.what();
throw std::runtime_error(ss.str());
}
+ if ((uint64_t)pgid.pgid.m_pool != (uint64_t)ghobj.hobj.pool) {
+ cerr << "Object pool and pgid pool don't match" << std::endl;
+ ret = 1;
+ goto out;
+ }
}
} catch (std::runtime_error& e) {
cerr << e.what() << std::endl;