]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: extend TestLibRBD.RenameViaLockOwner
authorMykola Golub <mgolub@suse.com>
Mon, 22 Feb 2021 12:53:38 +0000 (12:53 +0000)
committerJason Dillaman <dillaman@redhat.com>
Wed, 24 Feb 2021 14:05:55 +0000 (09:05 -0500)
commit1d1c0c797aa097332e32a05d5cf33a5154c50a8c
treeaa6019fa0e975f451a16091b2481d49556a9dfc0
parent63e28271c68314bf5aa7d54f5e891b00c630cd5b
test/librbd: extend TestLibRBD.RenameViaLockOwner

To cover the following case:

- Client A has image opened but does not owns the lock.
- Client B renames the image (client A is not aware of it).
- Client A becomes the lock owner.
- Client B requests rename, which is proxied to the client A.

Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 2d2e04e86bcc666e3abaceeeef7e1598dcc9fb94)
src/test/librbd/test_librbd.cc