From: wessels <> Date: Wed, 25 Mar 1998 09:56:15 +0000 (+0000) Subject: Need to make fileno 'proper' in rebuild-from-file. Otherwise, the X-Git-Tag: SQUID_3_0_PRE1~3756 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59fba6bb5eac8a561c90b3fb6de3cd89f15c19a8;p=thirdparty%2Fsquid.git Need to make fileno 'proper' in rebuild-from-file. Otherwise, the logs get crossed when you add/remove cache_dir's. --- diff --git a/src/store_rebuild.cc b/src/store_rebuild.cc index 2ccc71847d..228fd76a9e 100644 --- a/src/store_rebuild.cc +++ b/src/store_rebuild.cc @@ -224,6 +224,7 @@ storeRebuildFromSwapLog(rebuild_dir * d) continue; if (s.op >= SWAP_LOG_MAX) continue; + s.swap_file_number = storeDirProperFileno(d->dirn, s.swap_file_number); debug(20, 3) ("storeRebuildFromSwapLog: %s %s %08X\n", swap_log_op_str[(int) s.op], storeKeyText(s.key),