Summary: | Broken logic in DataStore::setItemFlags causes flags to be erroneously removed | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Tomas Trnka <tomastrnka> |
Component: | server | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | woebbeking |
Priority: | NOR | ||
Version: | 1.10.3 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/akonadi/faabb920d8efe5c35bba070396b8df608c5a910a | Version Fixed In: | 1.11.1 |
Sentry Crash Report: |
Description
Tomas Trnka
2013-12-01 15:26:52 UTC
Patch posted for review at http://git.reviewboard.kde.org/r/114241/ Git commit daa2e624c64cafb6ec9ac6f2a619a896588eb254 by Tomáš Trnka. Committed on 01/12/2013 at 17:39. Pushed by ttrnka into branch 'master'. Don't do redundant flag changes in setItemsFlags Instead of removing all flags and then adding the requested ones back, figure out which flags are actually getting added or removed and only apply those changes. Everything is still carried out in up to two DB queries. Additionally, don't send out the change notification if nothing has actually changed. FIXED-IN:1.11.1 REVIEW:114241 M +29 -29 server/src/storage/datastore.cpp http://commits.kde.org/akonadi/daa2e624c64cafb6ec9ac6f2a619a896588eb254 Git commit faabb920d8efe5c35bba070396b8df608c5a910a by Tomáš Trnka. Committed on 01/12/2013 at 17:39. Pushed by ttrnka into branch '1.11'. Don't do redundant flag changes in setItemsFlags Instead of removing all flags and then adding the requested ones back, figure out which flags are actually getting added or removed and only apply those changes. Everything is still carried out in up to two DB queries. Additionally, don't send out the change notification if nothing has actually changed. FIXED-IN:1.11.1 REVIEW:114241 M +29 -29 server/src/storage/datastore.cpp http://commits.kde.org/akonadi/faabb920d8efe5c35bba070396b8df608c5a910a |