diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-04-04 14:43:04 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-04-04 14:43:04 +0000 |
commit | 630f86cfdd1192638c95ddc6b2e4f21dde57a08f (patch) | |
tree | bbe772839972e491f25a7ee662811bab93570111 /document | |
parent | 2843c1e7f623333eed0068435e414ea85b3b5463 (diff) |
Protect DocumentTypeRepoFactory::empty method with guard.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/repo/document_type_repo_factory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/document/src/vespa/document/repo/document_type_repo_factory.cpp b/document/src/vespa/document/repo/document_type_repo_factory.cpp index 07cb7aec17a..208b64dc77c 100644 --- a/document/src/vespa/document/repo/document_type_repo_factory.cpp +++ b/document/src/vespa/document/repo/document_type_repo_factory.cpp @@ -71,6 +71,7 @@ DocumentTypeRepoFactory::make(const DocumenttypesConfig &config) bool DocumentTypeRepoFactory::empty() { + std::lock_guard guard(_mutex); return _repos.empty(); } |