sum += f3;
while (const uint64_t higherBits = sum >> 24)
- sum = (sum & 0xFFFFFF) + higherBits;
+ sum = (sum & 0xFFFFFF) + higherBits;
sum = ~sum;
}
StoreSwapLogHeader::StoreSwapLogHeader(): op(SWAP_LOG_VERSION), version(2),
- record_size(sizeof(StoreSwapLogData))
+ record_size(sizeof(StoreSwapLogData))
{
checksum.set(version, record_size, 0);
}
#include "squid-old.h"
/// maintains a 24-bit checksum over integer fields
-class SwapChecksum24 {
+class SwapChecksum24
+{
public:
SwapChecksum24() { raw[0] = raw[1] = raw[2] = 0; }
- bool operator ==(const SwapChecksum24 &o) const {
+ bool operator ==(const SwapChecksum24 &o) const {
return raw[0] == o.raw[0] && raw[1] == o.raw[1] && raw[2] == o.raw[2];
}
- bool operator !=(const SwapChecksum24 &o) const {
+ bool operator !=(const SwapChecksum24 &o) const {
return !(*this == o);
}
flags.need_to_validate = 1;
debugs(47, DBG_IMPORTANT, "Rebuilding storage in " << sd->path << " (" <<
- (clean ? "clean log" : (LogParser ? "dirty log" : "no log")) << ")");
+ (clean ? "clean log" : (LogParser ? "dirty log" : "no log")) << ")");
}
RebuildState::~RebuildState()