addressbook: Improve bulk contact removal code
authorChristophe Dumez <christophe.dumez@intel.com>
Tue, 4 Oct 2011 13:26:52 +0000 (16:26 +0300)
committerChristophe Dumez <christophe.dumez@intel.com>
Sat, 8 Oct 2011 07:06:48 +0000 (10:06 +0300)
commit510d4c84ea9c97777ef9e804e2662bca045424cc
tree4fa1de79f542407bec0771d2ea2da01b11ec63e6
parent77b603a9af83770e8222831aa62947a7fedf9dcb
addressbook: Improve bulk contact removal code

The patch makes use of Berkeley DB transations in the file backend
and roll back the transaction in case of error to make the
behavior consistent with bulk addition.

This patch also makes the webdav backend behave as expected since
it does not support bulk removal and the implementation was broken.
addressbook/backends/file/e-book-backend-file.c
addressbook/backends/webdav/e-book-backend-webdav.c