Skip to content

Commit

Permalink
rados: Balance format sections in same do_get_inconsistent_cmd()
Browse files Browse the repository at this point in the history
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit de4681b)
  • Loading branch information
dzafman committed Jun 14, 2016
1 parent d248aba commit 80f0dd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/rados/rados.cc
Expand Up @@ -1321,7 +1321,6 @@ static void dump_inconsistent(const inconsistent_obj_t& inc,
f.close_section();
}
f.close_section();
f.close_section();
}

static void dump_inconsistent(const inconsistent_snapset_t& inc,
Expand Down Expand Up @@ -1349,7 +1348,6 @@ static void dump_inconsistent(const inconsistent_snapset_t& inc,
}
f.close_section();
}
f.close_section();
}

// dispatch the call by type
Expand Down Expand Up @@ -1425,6 +1423,7 @@ static int do_get_inconsistent_cmd(const std::vector<const char*> &nargs,
for (auto& inc : items) {
formatter.open_object_section("inconsistent");
dump_inconsistent(inc, formatter);
formatter.close_section();
}
if (items.size() < max_item_num) {
formatter.close_section();
Expand Down

0 comments on commit 80f0dd3

Please sign in to comment.