diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-18 15:46:56 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | b5a29ec0daf024fde9bd06f76cab8a12fd509aab (patch) | |
tree | b1786fc20a5033aa6789ab37b916e072c4d3937a /src/other_tools/just_mr/launch.cpp | |
parent | c88585ddf9386fb14154a4f3baa702569d55584a (diff) | |
download | justbuild-b5a29ec0daf024fde9bd06f76cab8a12fd509aab.tar.gz |
Pass StorageConfig to GarbageCollector::SharedLock
Diffstat (limited to 'src/other_tools/just_mr/launch.cpp')
-rw-r--r-- | src/other_tools/just_mr/launch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/other_tools/just_mr/launch.cpp b/src/other_tools/just_mr/launch.cpp index 132ed065..cfa45406 100644 --- a/src/other_tools/just_mr/launch.cpp +++ b/src/other_tools/just_mr/launch.cpp @@ -23,6 +23,7 @@ #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" #include "src/buildtool/multithreading/task_system.hpp" +#include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/garbage_collector.hpp" #include "src/other_tools/just_mr/exit_codes.hpp" #include "src/other_tools/just_mr/setup.hpp" @@ -61,7 +62,7 @@ auto CallJust(std::optional<std::filesystem::path> const& config_file, if (subcommand and kKnownJustSubcommands.contains(*subcommand)) { // Read the config file if needed if (kKnownJustSubcommands.at(*subcommand).config) { - lock = GarbageCollector::SharedLock(); + lock = GarbageCollector::SharedLock(StorageConfig::Instance()); if (not lock) { return kExitGenericFailure; } |