]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: update hidden global config when setting pool config override 36725/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2020 01:14:18 +0000 (21:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Aug 2020 20:23:53 +0000 (16:23 -0400)
commit9089f5c3ce94f6cf7161ff1a7191334765052255
tree0806f7d34bad5886e4a4c1476081a6e664966cf0
parent71ed94c9a4bf9d4e6632e29f21241c4929a57e42
librbd: update hidden global config when setting pool config override

The new "dev"-level global config setting will be updated when any
pool-level config override is updated. librbd clients will detect
the new global-level config update and trigger a refresh. This avoids
the need for potentially tens of thousands of librbd clients
registering a watch on the pool metadata object or periodically polling
the pool metadata object for updates.

Fixes: https://tracker.ceph.com/issues/46694
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f45df9fe786e8057c491c082e840483759d67e9e)

Conflicts:
src/common/options.cc
- "rbd_quiesce_notification_attempts", "rbd_default_snapshot_quiesce_mode", and
  "rbd_plugins" options have not been backported to Octopus, yet

(cherry picked from commit ea2dec49276c5ea79980d184d97b6a410ee1dec5)

Conflicts:
src/common/options.cc: trivial resolution
src/common/options.cc
src/librbd/api/Config.cc
src/librbd/api/PoolMetadata.cc
src/test/librados_test_stub/TestRadosClient.cc