]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/fio: fix compiler error. 22728/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 27 Jun 2018 10:04:44 +0000 (18:04 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 27 Jun 2018 10:04:44 +0000 (18:04 +0800)
commit3fcd8290ba9bffa232560a5ca6ae59234a837c75
treebaeddc911ffd58d590507a19bf158bf54cde291f
parentaf13810872d58dfa303c53d38d41767c0d1bc474
test/fio: fix compiler error.

Compile  with -DWITH_FIO=ON, met the following bug.
/home/ceph/src/test/fio/fio_ceph_objectstore.cc:148:9: error: ‘unique_ptr’ in namespace ‘ceph’ does not name a template type
   ceph::unique_ptr<std::mutex> lock;
         ^~~~~~~~~~
/home/ceph/src/test/fio/fio_ceph_objectstore.cc: In constructor ‘{anonymous}::Collection::Collection(const spg_t&, ObjectStore::CollectionHandle)’:
/home/ceph/src/test/fio/fio_ceph_objectstore.cc:158:9: error: class ‘{anonymous}::Collection’ does not have any field named ‘lock’
         lock(new std::mutex) {
         ^~~~
/home/ceph/src/test/fio/fio_ceph_objectstore.cc: In function ‘fio_q_status {anonymous}::fio_ceph_os_queue(thread_data*, io_u*)’:
/home/ceph/src/test/fio/fio_ceph_objectstore.cc:604:38: error: ‘struct {anonymous}::Collection’ has no member named ‘lock’
  std::lock_guard<std::mutex> l(*coll.lock);

This bug introduct by commit da5d156b6bdffdd31e4edbadc1cdfc69197bef49.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/test/fio/fio_ceph_objectstore.cc