Browse Source

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.
wip/unchecked-remove
Oswald Buddenhagen 8 years ago
parent
commit
a5d4a0fe60
  1. 2
      src/sync.c

2
src/sync.c

@ -1279,7 +1279,7 @@ box_opened2( sync_vars_t *svars, int t )
else if (!srec->uid[S]) else if (!srec->uid[S])
opts[S] |= OPEN_NEW|OPEN_FIND, svars->state[S] |= ST_FIND_OLD; opts[S] |= OPEN_NEW|OPEN_FIND, svars->state[S] |= ST_FIND_OLD;
else 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] ); svars->opts[M] = svars->drv[M]->prepare_load_box( ctx[M], opts[M] );

Loading…
Cancel
Save