From: Alex Rousskov Date: Sat, 21 Jul 2012 01:29:37 +0000 (-0600) Subject: Added a todo to avoid a pointless validation loop when validation (-S) is not requested. X-Git-Tag: SQUID_3_2_0_19~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8977135b6d5ce722950e9fab5b5aa57d3a7b30c7;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;