- changed the batch commit functionality in barry_sync.cc
commitc0441980d82a400c792319ae9ccd7be1a413aba9
authorcdfrey <cdfrey>
Sat, 28 Jul 2007 00:00:41 +0000 (28 00:00 +0000)
committercdfrey <cdfrey>
Sat, 28 Jul 2007 00:00:41 +0000 (28 00:00 +0000)
tree97460590fbcccceeaab9aff30a3e63eeab8bb13b
parent2eeb1da2dd97bdb0b1bdc172c444ca6dfe72aeb7
- changed the batch commit functionality in barry_sync.cc
to single-change-commit.  Why?  Because opensync
0.22 groups all batch changes into one group
and calls one batch commit function, even if you
registered two.  Moving to single change commit
mode removes a chunk of unneccessary code
from the plugin as well, and can in theory
ease memory pressure in the library.
- added FinishSync() to perform actions needed on successful
syncing completion
- disconnect on successful sync completion, and reconnect,
since the device's dirty flags don't seem to
be updated until a disconnect occurs.
opensync-plugin/src/barry_sync.cc