From: Alex Rousskov Date: Fri, 20 Jul 2012 23:17:53 +0000 (-0600) Subject: Added a todo to avoid a pointless validation loop when validation (-S) is not X-Git-Tag: sourceformat-review-1~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2603154686196475a4164df9ce85e079a5b9cee1;p=thirdparty%2Fsquid.git Added a todo to avoid a pointless validation loop when validation (-S) is not requested. --- diff --git a/src/store_rebuild.cc b/src/store_rebuild.cc index e52280a409..3f49a355a0 100644 --- a/src/store_rebuild.cc +++ b/src/store_rebuild.cc @@ -74,6 +74,7 @@ storeCleanup(void *datanotused) size_t statCount = 500; + // TODO: Avoid the loop (and ENTRY_VALIDATED) unless opt_store_doublecheck. while (statCount-- && !currentSearch->isDone() && currentSearch->next()) { StoreEntry *e;