]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/ceph_test_rados: aio completion is not released for ReadOp
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 21 May 2015 04:40:49 +0000 (12:40 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 21 May 2015 04:40:49 +0000 (12:40 +0800)
Should release the completion when the ReadOp finishes.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/test/osd/RadosModel.h

index f9c0f9bc9e4e5b2c72dc2ee904d0caa4a8ff195a..05141dae561c52d7a256512910b28dbea16dba69 100644 (file)
@@ -1188,6 +1188,7 @@ public:
        }
       }
     }
+    completion->release();
     context->kick();
     done = true;
     context->state_lock.Unlock();
@@ -1195,7 +1196,7 @@ public:
 
   bool finished()
   {
-    return done && completion->is_complete();
+    return done;
   }
 
   string getType()