GNOME Bugzilla – Bug 730374
addressbook: Simplify cancellable handling
Last modified: 2014-05-21 12:45:42 UTC
Patch attached.
Created attachment 276773 [details] [review] addressbook: Simplify cancellable handling This makes no functional changes to the code. Coverity issue: #1214491
Review of attachment 276773 [details] [review]: No, Coverity claim is valid, in uncovered an issue in the code and your fix didn't fix the issue. See how priv->cancel is used, it is set only during transaction, thus unsetting it in the ebsql_exec(), when in transaction, is wrong.
Created attachment 276838 [details] [review] addressbook: Fix cancellable handling if not in a transaction If not in a transaction, ebsql_exec() will set a temporary GCancellable for the operation (transactions set their own), but would then erroneously clear *all* cancellables after the query finished; even those set by transactions. Coverity issue: #1214491
Review of attachment 276838 [details] [review]: Looks good, please commit. Thanks.
Attachment 276838 [details] pushed as 525839a - addressbook: Fix cancellable handling if not in a transaction