diff options
author | J. Eric Ivancich <ivancich@redhat.com> | 2022-01-20 16:56:49 +0100 |
---|---|---|
committer | J. Eric Ivancich <ivancich@redhat.com> | 2022-03-24 17:15:32 +0100 |
commit | 3877c1e37f2fa4e1574b57f05132288f210835a7 (patch) | |
tree | 6d6e7ab9f40d3457d9f243b864903538003afb76 /src/objclass | |
parent | Merge pull request #45393 from rzarzynski/wip-crimson-fix-throw-in-plugins (diff) | |
download | ceph-3877c1e37f2fa4e1574b57f05132288f210835a7.tar.xz ceph-3877c1e37f2fa4e1574b57f05132288f210835a7.zip |
osd: add new CLS call to retrieve global configuration
Currently there is no easy way to gain access to global configuration
from CLS (objclass) code. This adds a new call to the CLS interface
that returns a "const ConfigProxy&" from which configuration can be
accessed.
NOTE: Working code to do provide this functionality in crimson is not
provided.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
Diffstat (limited to 'src/objclass')
-rw-r--r-- | src/objclass/objclass.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/objclass/objclass.h b/src/objclass/objclass.h index 0048665fd1c..d249c143508 100644 --- a/src/objclass/objclass.h +++ b/src/objclass/objclass.h @@ -142,6 +142,7 @@ extern uint64_t cls_get_features(cls_method_context_t hctx); extern uint64_t cls_get_client_features(cls_method_context_t hctx); extern ceph_release_t cls_get_required_osd_release(cls_method_context_t hctx); extern ceph_release_t cls_get_min_compatible_client(cls_method_context_t hctx); +extern const ConfigProxy& cls_get_config(cls_method_context_t hctx); /* helpers */ extern void cls_cxx_subop_version(cls_method_context_t hctx, std::string *s); |