MaxMessages: ignore entries with no master while calculating bulk fetch

This commit is contained in:
Oswald Buddenhagen 2013-12-13 15:36:33 +01:00
parent 2bbd07ec87
commit 359091625d

View File

@ -1018,7 +1018,7 @@ box_selected( int sts, void *aux )
/* First, find out the lower bound for the bulk fetch. */ /* First, find out the lower bound for the bulk fetch. */
minwuid = INT_MAX; minwuid = INT_MAX;
for (srec = svars->srecs; srec; srec = srec->next) { for (srec = svars->srecs; srec; srec = srec->next) {
if (srec->status & S_DEAD) if ((srec->status & S_DEAD) || srec->uid[M] <= 0)
continue; continue;
if (srec->status & S_EXPIRED) { if (srec->status & S_EXPIRED) {
if (!srec->uid[S]) { if (!srec->uid[S]) {