summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_cas.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-12-04 14:47:50 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-13 16:22:13 +0100
commit150d84062bdfb21c9edd3b93c3595fea7107b15d (patch)
tree6e7c77a56d12dfab82beef3c91e3ca72f54f5615 /src/buildtool/file_system/git_cas.hpp
parenta98612a9a06ae2d3c5f59b34f6632d4f88137f04 (diff)
downloadjustbuild-150d84062bdfb21c9edd3b93c3595fea7107b15d.tar.gz
GitCAS: remove mutex and locks
...since there are no unique_locks any more. (cherry-picked from 9a164558010af84d834dee86f1929bd6582a1ccb)
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r--src/buildtool/file_system/git_cas.hpp6
1 files changed, 1 insertions, 5 deletions
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 <memory>
#include <optional>
#include <shared_mutex>
+#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
@@ -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
};