]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: fix gmock warning in snapshot rollback test 23736/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 24 Aug 2018 16:33:47 +0000 (12:33 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 24 Aug 2018 16:33:47 +0000 (12:33 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/operation/SnapshotRollbackRequest.cc

index 0bf166014709764a1b26922f60bcdc935ffe174b..2b98af3278ed4f18f591ee81e8daf10a9043995d 100644 (file)
@@ -50,8 +50,8 @@ public:
       RWLock::RLocker snap_locker(image_ctx.snap_lock);
       if (m_object_num < m_head_num_objects &&
           m_snap_object_map != nullptr &&
-          !m_snap_object_map->object_may_exist(m_object_num) &&
-          !image_ctx.object_map->object_may_exist(m_object_num)) {
+          !image_ctx.object_map->object_may_exist(m_object_num) &&
+          !m_snap_object_map->object_may_exist(m_object_num)) {
         return 1;
       }
     }