aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-01-09 19:24:52 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-01-11 10:19:18 +0000
commit8afe1cf59061a2680ebadda5084bc2e746580ebd (patch)
tree473a836cf7ac4f2e2c28a3aae6c813232d5173f1 /storage
parent21b0635ffe1490311bfc988f7046383ee458c990 (diff)
Move the pair of shared_ptrs on return since there is multiple return points.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
index e7c53516b58..7fcaf33d449 100644
--- a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
+++ b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
@@ -630,7 +630,7 @@ FileStorHandlerImpl::getNextMessage(uint16_t disk, uint8_t maxPriority)
takeDiskBucketLockOwnership(t, id, *msg));
MBUS_TRACE(trace, 9, "FileStorHandler: Got lock on bucket");
lockGuard.broadcast(); // XXX: needed here?
- return {std::move(locker), std::move(msg)};
+ return std::move(FileStorHandler::LockedMessage(std::move(locker), std::move(msg)));
} else {
std::shared_ptr<api::StorageReply> msgReply(
makeQueueTimeoutReply(*msg));