<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12683">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Krunner::match is performed in potentially multiple overlapping threads<br />
as a user presses each character. Qt SQL is not thread safe according to<br />
the docs or according to the numerous reports.</p>

<p>It's a bit of a blind patch, ideally we should only use the database in<br />
the thread that opened it.</p>

<p>This patch at least this means queries will be queued which I think will<br />
be enough.</p>

<p>CCBUG: 363136</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Restarted krunner. Still saw my firefox bookmarks</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12683">https://phabricator.kde.org/D12683</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>runners/bookmarks/fetchsqlite.cpp<br />
runners/bookmarks/fetchsqlite.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>