From: Greg Farnum Date: Thu, 25 Mar 2010 22:39:58 +0000 (-0700) Subject: rados_bencher: Don't re-initialize passed-in pool, it breaks stuff X-Git-Tag: v0.20~176 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=21b88da2571c00cfe7e8583550378eb9283dbee5;p=ceph.git rados_bencher: Don't re-initialize passed-in pool, it breaks stuff --- diff --git a/src/osdc/rados_bencher.h b/src/osdc/rados_bencher.h index 13af470d9295..fbbf2bafefa6 100644 --- a/src/osdc/rados_bencher.h +++ b/src/osdc/rados_bencher.h @@ -9,6 +9,10 @@ * License version 2.1, as published by the Free Software * Foundation. See file COPYING. * + * Series of functions to test your rados installation. Notice + * that this code is not terribly robust -- for instance, if you + * try and bench on a pool you don't have permission to access + * it will just loop forever. */ #include "osdc/librados.h" #include "config.h" @@ -57,10 +61,6 @@ int aio_bench(Rados& rados, rados_pool_t pool, int operation, char* contentsChars = new char[op_size]; int r = 0; - //set up the pool - r = rados.open_pool("data",&pool); - //cout << "open pool result = " << r << " pool = " << pool << std::endl; - //get data from previous write run, if available if (operation != OP_WRITE) { bufferlist object_data;