]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados/cmd: fix compile error
authorSage Weil <sage@inktank.com>
Tue, 15 Oct 2013 22:27:19 +0000 (15:27 -0700)
committerSage Weil <sage@inktank.com>
Tue, 15 Oct 2013 22:32:07 +0000 (15:32 -0700)
From commit f0805cb61fccf9ffaa905b8477a131b4d46379fa.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/librados/cmd.cc

index a822f558e0589d7cf21b70669c8645752bf59ea5..f47cc9fc7d2717b4496bd86c708f0fffe8645fb5 100644 (file)
@@ -101,7 +101,7 @@ TEST(LibRadosCmd, PGCmd) {
 
   cmd[0] = (char *)"asdfasdf";
   // note: tolerate NXIO here in case the cluster is thrashing out underneath us.
-  r = rados_pg_command(cluster, pgid.c_str(), (const char **)cmd, 1, "", 0, &buf, &buflen, &st, &stlen);
+  int r = rados_pg_command(cluster, pgid.c_str(), (const char **)cmd, 1, "", 0, &buf, &buflen, &st, &stlen);
   ASSERT_TRUE(r == -22 || r == -ENXIO);
 
   // make sure the pg exists on the osd before we query it