commit a5d4a0fe6037da3798db487e828d907ea8c9cc1b
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Apr 9 10:40:06 2017 +0200
make sync records with stray TUID non-fatal
while the situation indicates an internal error, it is harmless in
itself. also, printing some more information may help identify the
problem.
src/sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sync.c b/src/sync.c
index cf64228..8f2b4a2 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -1279,7 +1279,7 @@ box_opened2( sync_vars_t *svars, int t )
else if (!srec->uid[S])
opts[S] |= OPEN_NEW|OPEN_FIND,
svars->state[S] |= ST_FIND_OLD;
else
- assert( !"sync record with stray TUID"
);
+ warn( "Warning: sync record (%d,%d) has
stray TUID. Ignoring.\n", srec->uid[M], srec->uid[S] );
}
}
svars->opts[M] = svars->drv[M]->prepare_load_box( ctx[M], opts[M] );
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel