GNOME Bugzilla – Bug 747849
Want transactional operation that removes multiple resources
Last modified: 2015-04-14 14:49:35 UTC
Got a patchset ready.
Created attachment 301545 [details] [review] gom: Ensure we update ids when saving a resource group We move the freeing of the items to the destruction of the asyncresult and then we iterate over all items calling gom_resource_set_post_save_properties on a successfull operation. This also updates test-gom-stress to ensure we're getting the right ids when calling gom_resource_group_write_sync().
Created attachment 301546 [details] [review] gom: Add gom_resource_group_delete_[a]sync functions These are for deleting a group of objects as a transaction.
Review of attachment 301545 [details] [review]: Looks good.
Review of attachment 301546 [details] [review]: Looks good otherwise. ::: tests/test-gom-stress.c @@ +315,3 @@ g_free(s2); + group = gom_resource_group_new(repository); Can you add the same test to stress1() and a note of what it does as a comment?
Attachment 301545 [details] pushed as 67d7663 - gom: Ensure we update ids when saving a resource group Attachment 301546 [details] pushed as 9fe1ed8 - gom: Add gom_resource_group_delete_[a]sync functions