Skip to content

Commit

Permalink
Merge pull request #11117 from xiexingguo/xxg-wip-mon-0918
Browse files Browse the repository at this point in the history
tools/rebuild_mondb: kill comipling warning and other fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Sep 18, 2016
2 parents a033dc6 + f16a314 commit e1667dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/tools/ceph_objectstore_tool.cc
Expand Up @@ -2874,6 +2874,7 @@ int main(int argc, char **argv)
} else if (op == "update-mon-db") {
if (!vm.count("mon-store-path")) {
cerr << "Please specify the path to monitor db to update" << std::endl;
ret = -EINVAL;
} else {
ret = update_mon_db(*fs, superblock, dpath + "/keyring", mon_store_path);
}
Expand Down
6 changes: 3 additions & 3 deletions src/tools/rebuild_mondb.cc
Expand Up @@ -22,7 +22,7 @@ int update_mon_db(ObjectStore& fs, OSDSuperblock& sb,
int r = ms.create_and_open(cerr);
if (r < 0) {
cerr << "unable to open mon store: " << store_path << std::endl;
return EINVAL;
return r;
}
if ((r = update_auth(keyring, sb, ms)) < 0) {
goto out;
Expand Down Expand Up @@ -235,7 +235,7 @@ int update_osdmap(ObjectStore& fs, OSDSuperblock& sb, MonitorDBStore& ms)
for (auto e = max(last_committed+1, sb.oldest_map);
e <= sb.newest_map; e++) {
bool have_crc = false;
uint32_t crc;
uint32_t crc = -1;
uint64_t features = 0;
// add inc maps
{
Expand Down Expand Up @@ -410,7 +410,7 @@ int update_pgmap_pg(ObjectStore& fs, MonitorDBStore& ms)
}
if (struct_v < PG::cur_struct_v) {
cerr << "incompatible pg_info: v" << struct_v << std::endl;
return r;
return -EINVAL;
}
version_t latest_epoch = 0;
r = ms.get(prefix, stringify(pgid.pgid), bl);
Expand Down

0 comments on commit e1667dc

Please sign in to comment.