Formatting fix for store doublecheck procedure

From: Metathronius Galabant <m.galabant@dont-contact.us>
Date: Mon, 27 Nov 2006 11:35:40 +0100

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)
Received on Mon Nov 27 2006 - 04:34:38 MST

This archive was generated by hypermail pre-2.1.9 : Wed Nov 29 2006 - 12:00:05 MST