]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 31 Mar 2023 10:23:45 +0000 (12:23 +0200)
commite11097bc4cf82b997ad1e8e21a8cd9400767f40d
treee70b549c4911c92c75f49cf65744383a448008a6
parent8bf4784c5aa80e2b42cfdeb8cb5e355fb21a632b
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>
PendingReleaseNotes
src/librbd/internal.cc
src/test/librbd/test_librbd.cc