summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-12 21:37:09 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-01-12 21:37:09 +0000
commit5a79dce01f83db65b620e15e16f3f60318ac7e24 (patch)
tree867c10884bbfeb04b0e61979c129c79fea2e01f7 /storage
parentc6f8458bfa881c44f9c61524dadaae09df830e8b (diff)
No need to notify anyone when you grab a bucket lock. Nobody will be allowed to do anything anyway.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
index 967f6b6e195..56b10a67a79 100644
--- a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
+++ b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
@@ -420,10 +420,7 @@ FileStorHandlerImpl::Stripe::lock(const document::Bucket &bucket, api::LockingRe
_cond->wait_for(guard, 100ms);
}
- auto locker = std::make_shared<BucketLock>(guard, *this, bucket, 255, api::MessageType::INTERNAL_ID, 0, lockReq);
- guard.unlock();
- _cond->notify_all();
- return locker;
+ return std::make_shared<BucketLock>(guard, *this, bucket, 255, api::MessageType::INTERNAL_ID, 0, lockReq);
}
namespace {