Skip to content
Snippets Groups Projects
Commit a74a365a authored by Eric Cano's avatar Eric Cano
Browse files

Fixed missing fetch in OStoreDB::trimEmptyQueues().

parent a9e279be
No related branches found
No related tags found
No related merge requests found
......@@ -215,6 +215,7 @@ void OStoreDB::trimEmptyQueues(log::LogContext& lc) {
// Get an exclusive lock on the root entry, we have good chances to need it.
RootEntry re(m_objectStore);
ScopedExclusiveLock rel(re);
re.fetch();
try {
auto archiveQueueList = re.dumpArchiveQueues();
for (auto & a: archiveQueueList) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment