Hi,

the log entries when doing store doublecheck (-S) are not consistent:

Before (note the spaces before "Completed"):

2006/11/25 13:24:01| Beginning Validation Procedure
2006/11/25 14:28:07|   Completed Validation Procedure
2006/11/25 14:28:07|   Validated 1317870 Entries
2006/11/25 14:28:07|   store_swap_size = 25288892k

After (also note we first print the stats, then the "Completed"):

2006/11/25 13:24:01| Beginning Validation Procedure
2006/11/25 14:28:07|   Validated 1317870 Entries
2006/11/25 14:28:07|   store_swap_size = 25288892k
2006/11/25 14:28:07| Completed Validation Procedure

Please see attached patch against 2.6 STABLE5.
Cheers,
M

diff -ru squid-2.6.STABLE5/src/store_rebuild.c
squid-2.6.STABLE5-f/src/store_rebuild.c
--- squid-2.6.STABLE5/src/store_rebuild.c       2006-07-04
23:45:24.000000000 +0200
+++ squid-2.6.STABLE5-f/src/store_rebuild.c     2006-11-27
11:29:27.000000000 +0100
@@ -70,9 +70,9 @@
    validnum_start = validnum;
    while (validnum - validnum_start < 500) {
       if (++bucketnum >= store_hash_buckets) {
-           debug(20, 1) ("  Completed Validation Procedure\n");
           debug(20, 1) ("  Validated %d Entries\n", validnum);
           debug(20, 1) ("  store_swap_size = %dk\n", store_swap_size);
+           debug(20, 1) ("Completed Validation Procedure\n");
           store_dirs_rebuilding--;
           assert(0 == store_dirs_rebuilding);
           if (opt_store_doublecheck)

Reply via email to