Merge pull request #8309 from tchaikov/wip-15240

test/system/rados_list_parallel: print oid if rados_write fails

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Kefu Chai 2016-03-25 23:21:31 +08:00
commit 816c902ee5

View File

@ -93,7 +93,8 @@ run()
std::string buf(get_random_buf(256));
int ret = rados_write(io_ctx, oid, buf.c_str(), buf.size(), 0);
if (ret != 0) {
printf("%s: rados_write error %d\n", get_id_str(), ret);
printf("%s: rados_write(%s) failed with error: %d\n",
get_id_str(), oid, ret);
ret_val = ret;
goto out;
}