mirror of
https://github.com/ceph/ceph
synced 2025-04-11 04:02:04 +00:00
rados_bencher: Don't re-initialize passed-in pool, it breaks stuff
This commit is contained in:
parent
99e48ee20f
commit
21b88da257
@ -9,6 +9,10 @@
|
|||||||
* License version 2.1, as published by the Free Software
|
* License version 2.1, as published by the Free Software
|
||||||
* Foundation. See file COPYING.
|
* 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 "osdc/librados.h"
|
||||||
#include "config.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];
|
char* contentsChars = new char[op_size];
|
||||||
int r = 0;
|
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
|
//get data from previous write run, if available
|
||||||
if (operation != OP_WRITE) {
|
if (operation != OP_WRITE) {
|
||||||
bufferlist object_data;
|
bufferlist object_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user