summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-04-04 14:43:04 +0000
committerTor Egge <Tor.Egge@oath.com>2018-04-04 14:43:04 +0000
commit630f86cfdd1192638c95ddc6b2e4f21dde57a08f (patch)
treebbe772839972e491f25a7ee662811bab93570111 /document
parent2843c1e7f623333eed0068435e414ea85b3b5463 (diff)
Protect DocumentTypeRepoFactory::empty method with guard.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/repo/document_type_repo_factory.cpp1
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();
}