]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: clear Image::list_watchers() list before populating it
authorIlya Dryomov <idryomov@gmail.com>
Thu, 30 Mar 2023 11:58:20 +0000 (13:58 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 6 Apr 2023 15:07:41 +0000 (17:07 +0200)
commit3e718150e5f6a39f2072f693f519ea0edc4c062e
tree793725c7137aea9a5f9e902031181e7670138101
parent53c34c43040bb031a2acee3aee9565d91f540960
librbd: clear Image::list_watchers() list before populating it

The "append to the passed list" behavior is confusing and not what the
corresponding C API (rbd_watchers_list) or other similar C++ APIs (e.g.
list_lockers) do.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit e11097bc4cf82b997ad1e8e21a8cd9400767f40d)
PendingReleaseNotes
src/librbd/internal.cc
src/test/librbd/test_librbd.cc