Merge pull request #47336 from tchaikov/wip-ceph-dencoder-for-dev

tools/ceph-dencoder: register dencoders in "lib" in dev env

Reviewed-by: Xiubo Li <xiubli@redhat.com>
This commit is contained in:
Kefu Chai 2022-07-30 00:33:08 +08:00 committed by GitHub
commit b6cbffe047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,8 @@ vector<DencoderPlugin> load_plugins()
fs::path mod_dir{CEPH_DENC_MOD_DIR};
if (auto ceph_lib = getenv("CEPH_LIB"); ceph_lib) {
mod_dir = ceph_lib;
} else if (fs::is_regular_file("CMakeCache.txt")) {
mod_dir = std::filesystem::canonical("lib");
}
if (!fs::is_directory(mod_dir)) {
std::cerr << "unable to load dencoders from "