From f45df9fe786e8057c491c082e840483759d67e9e Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 27 Jul 2020 21:14:18 -0400 Subject: [PATCH] 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 --- src/common/options.cc | 5 ++++ src/librbd/api/Config.cc | 3 ++- src/librbd/api/PoolMetadata.cc | 24 +++++++++++++++++++ .../librados_test_stub/TestRadosClient.cc | 2 ++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/src/common/options.cc b/src/common/options.cc index d00414625f52a..5c5fd48fed536 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7639,6 +7639,11 @@ static std::vector