[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-cvs
Subject: cvs commit: squid/src/fs/ufs store_dir_ufs.c
From: serassio () squid-cache ! org
Date: 2005-03-26 23:27:11
Message-ID: 20050326232711.40780.qmail () squid-cache ! org
[Download RAW message or body]
serassio 2005/03/26 16:27:11 MST
Modified files: (Branch: SQUID_2_5)
src/fs/ufs store_dir_ufs.c
Log:
rename() related cleanup
On Windows (both native and Cygwin ports) and OS/2 is not possible rename a file
over an existent one, so before the rename operation an unlink() is always needed.
Sometime, after a squid crash, storeDirCloseTmpSwapLog() function family fails
because there is no target file to delete causing a fatal().
This patch move the unlink() into xrename() like the native Windows port and
remove all no more needed unlink().
Revision Changes Path
1.39.2.13 +1 -10 squid/src/fs/ufs/store_dir_ufs.c
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic