summaryrefslogtreecommitdiffstats
path: root/src/test/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/system')
-rw-r--r--src/test/system/st_rados_create_pool.cc3
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;