diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-12 13:57:58 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-12 13:57:58 +0000 |
commit | 72afb102e175539d267e92d060c89b7734fb9573 (patch) | |
tree | cd04aa7a677d8c09be2e8b882e13e5d37f8c7d62 | |
parent | 15d08e6952fd24a8146f729b4b74a5638fde7ad6 (diff) |
When you add a message to the Q you will at most provide work for 1 persistence thread.
-rw-r--r-- | storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp index 834b3dfa48e..13f3ceb328b 100644 --- a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp +++ b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp @@ -1101,12 +1101,10 @@ FileStorHandlerImpl::Stripe::abort(std::vector<std::shared_ptr<api::StorageReply bool FileStorHandlerImpl::Stripe::schedule(MessageEntry messageEntry) { - { - std::lock_guard guard(*_lock); - _queue->emplace_back(std::move(messageEntry)); - update_cached_queue_size(guard); - } - _cond->notify_all(); + std::lock_guard guard(*_lock); + _queue->emplace_back(std::move(messageEntry)); + update_cached_queue_size(guard); + _cond->notify_one(); return true; } |