diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-05-15 14:59:34 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-05-16 14:20:10 +0200 |
commit | 56f8c36474ccc8f5eb86be2dba2ba2ab6ce3272d (patch) | |
tree | 5cda2a18c191610ee305d9eb8e1003a2bd5c6109 /src/test/system | |
parent | test/system/rados_list_parallel.cc: reduce scope of 'ret' (diff) | |
download | ceph-56f8c36474ccc8f5eb86be2dba2ba2ab6ce3272d.tar.xz ceph-56f8c36474ccc8f5eb86be2dba2ba2ab6ce3272d.zip |
test/system/st_rados_create_pool.cc_ reduce scope of 'ret' in run()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/test/system')
-rw-r--r-- | src/test/system/st_rados_create_pool.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/system/st_rados_create_pool.cc b/src/test/system/st_rados_create_pool.cc index 4a46b0c04a8..dcae15375af 100644 --- a/src/test/system/st_rados_create_pool.cc +++ b/src/test/system/st_rados_create_pool.cc @@ -79,7 +79,6 @@ run() } RETURN1_IF_NONZERO(rados_connect(cl)); - int ret; printf("%s: creating pool %s\n", get_id_str(), m_pool_name.c_str()); rados_pool_create(cl, m_pool_name.c_str()); @@ -90,7 +89,7 @@ run() char oid[128]; snprintf(oid, sizeof(oid), "%d%s", i, m_suffix.c_str()); std::string buf(get_random_buf(256)); - ret = rados_write(io_ctx, oid, buf.c_str(), buf.size(), 0); + int ret = rados_write(io_ctx, oid, buf.c_str(), buf.size(), 0); if (ret < static_cast<int>(buf.size())) { printf("%s: rados_write error %d\n", get_id_str(), ret); return ret; |