diff -N -c -r -X exclude_files squid-1.0.beta8/src/store.c squid-1.0.beta8.henrik/src/store.c *** squid-1.0.beta8/src/store.c Mon May 20 18:21:23 1996 --- squid-1.0.beta8.henrik/src/store.c Tue May 21 17:13:38 1996 *************** *** 68,73 **** --- 68,74 ---- int dupcount; /* # duplicates purged */ time_t start, stop; int fast_mode; + int speed; /* Objects per run */ char line_in[4096]; }; *************** *** 1269,1276 **** int sfileno = 0; int count; ! /* load 5 object per invocation */ ! for (count = 0; count < 5; count++) { if (!fgets(data->line_in, 4095, data->log)) return 0; --- 1270,1277 ---- int sfileno = 0; int count; ! /* load a numboer of object per invocation */ ! for (count = 0; count < data->speed; count++) { if (!fgets(data->line_in, 4095, data->log)) return 0; *************** *** 1495,1500 **** --- 1496,1508 ---- debug(20, 1, "Rebuilding in FAST MODE.\n"); memset(data->line_in, '\0', 4096); + + /* Select rebuild speed */ + if (data->fast_mode) { + data->speed=50; + } else { + data->speed=5; + } /* Start reading the log file */ runInBackground("storeRebuild",