]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore, bugfix: recently bluestore got deffered writes. 14338/head
authorAdam Kupczyk <akupczyk@mirantis.com>
Wed, 5 Apr 2017 09:08:01 +0000 (11:08 +0200)
committerAdam Kupczyk <akupczyk@mirantis.com>
Wed, 5 Apr 2017 09:08:01 +0000 (11:08 +0200)
                   This caused data contained within write request necessary even after 'oncommit' was delivered.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
src/test/fio/fio_ceph_objectstore.cc

index c2ac742a9aa2b198004578e1ebafef3febcdb595..e453fc01e0ce36fe6ceab67ef32da251afa9329c 100644 (file)
@@ -338,8 +338,9 @@ int fio_ceph_os_queue(thread_data* td, io_u* u)
     const int flags = td_rw(td) ? CEPH_OSD_OP_FLAG_FADVISE_WILLNEED : 0;
 
     bufferlist bl;
-    bl.push_back(buffer::create_static(u->xfer_buflen,
-                                       static_cast<char*>(u->xfer_buf)));
+    bl.push_back(buffer::copy(reinterpret_cast<char*>(u->xfer_buf),
+                              u->xfer_buflen ) );
+
     // enqueue a write transaction on the collection's sequencer
     ObjectStore::Transaction t;
     t.write(coll.cid, object.oid, u->offset, u->xfer_buflen, bl, flags);