summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-10-06 13:07:47 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-10-06 13:07:47 +0200
commit9fa42f01249386655f6018184b5b4e562e9af81a (patch)
tree607a748f7333e47c6f372d960e1424dda72a61f4 /searchcore
parent3858a5faffad96ef4a255afb96d344dc7ab426d7 (diff)
Take bucket guard after having passed validLid() check.
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) {