mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
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:
commit
b6cbffe047
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user