commit cec4cd312bf7caf1da969f7d240b746d79018806
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Jul 27 20:17:07 2013 +0200
warn if we cannot find some messages by TUID
src/sync.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/sync.c b/src/sync.c
index 4b964a9..46b9333 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -221,6 +221,7 @@ match_tuids( sync_vars_t *svars, int t )
sync_rec_t *srec;
message_t *tmsg, *ntmsg = 0;
const char *diag;
+ int num_lost = 0;
for (srec = svars->srecs; srec; srec = srec->next) {
if (srec->status & S_DEAD)
@@ -247,6 +248,7 @@ match_tuids( sync_vars_t *svars, int t )
Fprintf( svars->jfp, "& %d %d\n", srec->uid[M],
srec->uid[S] );
srec->flags = 0;
srec->tuid[0] = 0;
+ num_lost++;
continue;
mfound:
debug( " -> new UID %d %s\n", tmsg->uid, diag );
@@ -257,6 +259,8 @@ match_tuids( sync_vars_t *svars, int t )
srec->tuid[0] = 0;
}
}
+ if (num_lost)
+ warn( "Warning: lost track of %d %sed message(s)\n", num_lost,
str_hl[t] );
}
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel