commit 44daf186b68afefd18a6bd15a04f9cc4c6068854
Author: Oswald Buddenhagen <[email protected]>
Date:   Sat Nov 9 11:42:09 2013 +0100

    set srec->msg[] when finding messages by tuid
    
    otherwise we would propagate phantom deletions.
    
    this affected only sync runs after an interruption while storing
    messages, so it went (mostly?) unnoticed.

 src/sync.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/sync.c b/src/sync.c
index 305ed55..5f1629c 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -255,6 +255,7 @@ match_tuids( sync_vars_t *svars, int t )
                        debug( "  -> new UID %d %s\n", tmsg->uid, diag );
                        Fprintf( svars->jfp, "%c %d %d %d\n", "<>"[t], 
srec->uid[M], srec->uid[S], tmsg->uid );
                        tmsg->srec = srec;
+                       srec->msg[t] = tmsg;
                        ntmsg = tmsg->next;
                        srec->uid[t] = tmsg->uid;
                        srec->tuid[0] = 0;

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to