[squid-users] squid-5 lost my cached dir
joseph
chip_pop at hotmail.com
Wed Feb 21 13:20:26 UTC 2018
found where the bug and i made it work but i dont know wat is the best
in UFSSwapDir.cc function Fs::Ufs::UFSSwapDir::openTmpSwapLog(int
*clean_flag, int *zero_flag)
was --> *zero_flag = log_sb.st_size == 0 ? 1 : 0;
change to *zero_flag = log_sb.st_size == 0 ? 0 : 1;
best to change int to bool in futur
the change make it work in RebuildState.cc function
Fs::Ufs::RebuildState::RebuildState(RefCount<UFSSwapDir> aSwapDir) :
now this work correctly
if (fp && !zeroLengthLog)
LogParser = Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser(fp);
-----
**************************
***** Crash to the future ****
**************************
--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
More information about the squid-users
mailing list