os4x: optimized dirty flag clearing
commit75910a187a3eaacedbb5b9a0ccb9236a2ac651f9
authorChris Frey <cdfrey@foursquare.net>
Tue, 31 Aug 2010 22:32:35 +0000 (31 18:32 -0400)
committerChris Frey <cdfrey@foursquare.net>
Tue, 31 Aug 2010 22:34:02 +0000 (31 18:34 -0400)
treeba2c584dbcb3fe4b908d71fc7cc687670c59026b
parent7889dd7f97a7c6e3b0575ca27a153a285a7b4694
os4x: optimized dirty flag clearing

Clearing the dirty flags on newly updated records requires a reconnect,
but it only requires one reconnect, and no reconnect it needed if nothing
is written to the device, so skip the reconnect whenever possible,
which makes syncing much faster.
ChangeLog
opensync-plugin-0.4x/src/barry_sync.cc
opensync-plugin-0.4x/src/environment.cc
opensync-plugin-0.4x/src/environment.h