|
|
@ -664,7 +664,7 @@ sync_boxes( store_t *mctx, const char *mname, |
|
|
|
maxwuid = srec->suid; |
|
|
|
maxwuid = srec->suid; |
|
|
|
} else |
|
|
|
} else |
|
|
|
maxwuid = 0; |
|
|
|
maxwuid = 0; |
|
|
|
info( "Selecting slave... " ); |
|
|
|
info( "Selecting slave %s... ", sname ); |
|
|
|
debug( "selecting slave [1,%d]\n", maxwuid ); |
|
|
|
debug( "selecting slave [1,%d]\n", maxwuid ); |
|
|
|
switch (sdriver->select( sctx, (sctx->opts & OPEN_OLD) ? 1 : smaxuid + 1, maxwuid, 0, 0 )) { |
|
|
|
switch (sdriver->select( sctx, (sctx->opts & OPEN_OLD) ? 1 : smaxuid + 1, maxwuid, 0, 0 )) { |
|
|
|
case DRV_STORE_BAD: ret = SYNC_SLAVE_BAD; goto bail; |
|
|
|
case DRV_STORE_BAD: ret = SYNC_SLAVE_BAD; goto bail; |
|
|
@ -767,7 +767,7 @@ sync_boxes( store_t *mctx, const char *mname, |
|
|
|
maxwuid = srec->muid; |
|
|
|
maxwuid = srec->muid; |
|
|
|
} else |
|
|
|
} else |
|
|
|
maxwuid = 0; |
|
|
|
maxwuid = 0; |
|
|
|
info( "Selecting master... " ); |
|
|
|
info( "Selecting master %s... ", mname ); |
|
|
|
debug( "selecting master [%d,%d]\n", minwuid, maxwuid ); |
|
|
|
debug( "selecting master [%d,%d]\n", minwuid, maxwuid ); |
|
|
|
switch (mdriver->select( mctx, minwuid, maxwuid, mexcs, nmexcs )) { |
|
|
|
switch (mdriver->select( mctx, minwuid, maxwuid, mexcs, nmexcs )) { |
|
|
|
case DRV_STORE_BAD: ret = SYNC_MASTER_BAD; goto finish; |
|
|
|
case DRV_STORE_BAD: ret = SYNC_MASTER_BAD; goto finish; |
|
|
|