diff options
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/reference/document_db_reference_registry.cpp')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/reference/document_db_reference_registry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/reference/document_db_reference_registry.cpp b/searchcore/src/vespa/searchcore/proton/reference/document_db_reference_registry.cpp index 75a20f9f8e5..68aaad3b557 100644 --- a/searchcore/src/vespa/searchcore/proton/reference/document_db_reference_registry.cpp +++ b/searchcore/src/vespa/searchcore/proton/reference/document_db_reference_registry.cpp @@ -30,7 +30,7 @@ DocumentDBReferenceRegistry::get(vespalib::stringref name) const std::shared_ptr<IDocumentDBReference> DocumentDBReferenceRegistry::tryGet(vespalib::stringref name) const { - std::unique_lock<std::mutex> guard(_lock); + std::lock_guard<std::mutex> guard(_lock); auto itr = _handlers.find(name); if (itr == _handlers.end()) { return std::shared_ptr<IDocumentDBReference>(); |