web queue: fix cache resizing utility + bug in indexer which would skip oldest entry

This commit is contained in:
Jean-Francois Dockes
2015-02-15 16:08:36 +01:00
parent 96bc0d5c6b
commit 727c055c86
2 changed files with 210 additions and 191 deletions
+4 -2
View File
@@ -287,7 +287,8 @@ bool BeagleQueueIndexer::index()
if (!eof)
return false;
}
while (cc->next(eof)) {
int nentries = 0;
do {
string udi;
if (!cc->getCurrentUdi(udi)) {
LOGERR(("BeagleQueueIndexer:: cache file damaged\n"));
@@ -307,7 +308,8 @@ bool BeagleQueueIndexer::index()
return false;
}
}
}
nentries++;
} while (cc->next(eof));
}
// Finally index the queue