summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp
index f0a44744feb..b7afecaf7fb 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp
@@ -566,10 +566,10 @@ DocumentMetaStore::remove(DocId lid, uint64_t prepare_serial_num, BucketDBOwner:
bool
DocumentMetaStore::remove(DocId lid, uint64_t prepare_serial_num)
{
- BucketDBOwner::Guard bucketGuard = _bucketDB->takeGuard();
if (!validLid(lid)) {
return false;
}
+ BucketDBOwner::Guard bucketGuard = _bucketDB->takeGuard();
remove(lid, prepare_serial_num, bucketGuard);
incGeneration();
if (_op_listener) {