]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: update hidden global config when setting pool config override 36309/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2020 01:14:18 +0000 (21:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 29 Jul 2020 12:46:50 +0000 (08:46 -0400)
commitf45df9fe786e8057c491c082e840483759d67e9e
treee9ed284c08f33b0ab42d1368a7872845ed188c70
parentea6c9bde0437cc163a0f6a52b3ef1f45eaa6f88b
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>
src/common/options.cc
src/librbd/api/Config.cc
src/librbd/api/PoolMetadata.cc
src/test/librados_test_stub/TestRadosClient.cc