]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Need to make fileno 'proper' in rebuild-from-file. Otherwise, the
authorwessels <>
Wed, 25 Mar 1998 09:56:15 +0000 (09:56 +0000)
committerwessels <>
Wed, 25 Mar 1998 09:56:15 +0000 (09:56 +0000)
logs get crossed when you add/remove cache_dir's.

src/store_rebuild.cc

index 2ccc71847d77052d8db198ebfee1f953f4a9e2ca..228fd76a9e838799f03ab2ce2c652ac696382cdc 100644 (file)
@@ -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),