Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rados: Improve error messages for list-inconsistent commands
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit cea7cf5)
  • Loading branch information
dzafman committed Jun 14, 2016
1 parent 502540f commit 43141e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tools/rados/rados.cc
Expand Up @@ -1403,8 +1403,13 @@ static int do_get_inconsistent_cmd(const std::vector<const char*> &nargs,
completion->wait_for_safe();
ret = completion->get_return_value();
completion->release();
if (ret == -EAGAIN) {
cerr << "interval#" << interval << " expired." << std::endl;
if (ret < 0) {
if (ret == -EAGAIN)
cerr << "interval#" << interval << " expired." << std::endl;
else if (ret == -ENOENT)
cerr << "No scrub information available for pg " << pg << std::endl;
else
cerr << "Unknown error " << cpp_strerror(ret) << std::endl;
break;
}
if (start.name.empty()) {
Expand Down

0 comments on commit 43141e3

Please sign in to comment.