Search squid archive

Re: squid-5 lost my cached dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux