Diffusion Baloo b0b32093524f

[WriteTransaction] Avoid growing m_pendingOperations twice on replace

Authored by bruns on Mar 1 2020, 5:27 PM.

Description

[WriteTransaction] Avoid growing m_pendingOperations twice on replace

Summary:
As the following addTerms() does another reserve() with growing by
terms.size() sum up both sizes. The reserve() in addTerms() is a
noop then.

Reviewers: Baloo, ngraham

Reviewed By: Baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D27771

Details

Committed
brunsMar 16 2020, 4:24 PM
Reviewer
Baloo
Differential Revision
D27771: [WriteTransaction] Avoid growing m_pendingOperations twice on replace
Parents
R293:ea77c412324e: [FileIndexScheduler] Cleanup firstRun handling
Branches
Unknown
Tags
Unknown