From 150d84062bdfb21c9edd3b93c3595fea7107b15d Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 4 Dec 2024 14:47:50 +0100 Subject: GitCAS: remove mutex and locks ...since there are no unique_locks any more. (cherry-picked from 9a164558010af84d834dee86f1929bd6582a1ccb) --- src/buildtool/file_system/git_cas.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/buildtool/file_system/git_cas.hpp') diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp index 78d03c99..8b2cdb1e 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -81,11 +82,6 @@ class GitCAS { // git folder path of repo std::filesystem::path git_path_; - // mutex to guard odb while setting up a "fake" repository; it needs to be - // uniquely owned while wrapping the odb, but then git operations are free - // to share it. - mutable std::shared_mutex mutex_; - friend class GitRepo; // allow access to ODB }; -- cgit v1.2.3