]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: possible librbd journal replay flush race
authorJason Dillaman <dillaman@redhat.com>
Wed, 10 Feb 2016 22:39:36 +0000 (17:39 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 10 Feb 2016 22:39:36 +0000 (17:39 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/journal/test_Replay.cc

index c144cbf2d3544912afcd685939be04955e3d5902..6534900a173fe3d5ec00773f897202409c7fa4b9 100644 (file)
@@ -125,12 +125,13 @@ TEST_F(TestJournalReplay, AioFlushEvent) {
   ASSERT_EQ(0, when_acquired_lock(ictx));
 
   librbd::journal::AioFlushEvent aio_flush_event;
-  librbd::journal::EventEntry event_entry(aio_flush_event);
   librbd::Journal<>::AioObjectRequests requests;
   {
     RWLock::RLocker owner_locker(ictx->owner_lock);
-    ictx->journal->append_io_event(NULL, std::move(event_entry), requests, 0, 0,
-                                   true);
+    ictx->journal->append_io_event(NULL, std::move(librbd::journal::EventEntry(aio_flush_event)),
+                                   requests, 0, 0, true);
+    ictx->journal->append_io_event(NULL, std::move(librbd::journal::EventEntry(aio_flush_event)),
+                                   requests, 0, 0, true);
   }
 
   // start an AIO write op