]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rados: prune away unused bufferlist variable 10221/head
authorYan Jun <yan.jun8@zte.com.cn>
Sat, 9 Jul 2016 04:04:31 +0000 (12:04 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Sat, 9 Jul 2016 04:04:31 +0000 (12:04 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/test/test_stress_watch.cc

index 1dd3738c0f0bf0e8015d2c91f7a00cb73c51483f..5077b13bf6a4c7bb4bd287efb2042c02c33dbef9 100644 (file)
@@ -52,9 +52,8 @@ struct WatcherUnwatcher : public Thread {
       uint64_t handle;
       WatchNotifyTestCtx watch_ctx;
       int r = ioctx.watch("foo", 0, &handle, &watch_ctx);
-      bufferlist bl;
       if (r == 0)
-       ioctx.unwatch("foo", handle);
+        ioctx.unwatch("foo", handle);
       ioctx.close();
     }
     return NULL;