sequenceNumber(-1),
machineId(-1),
transactionSequenceNumber(-1),
- liveKeys(new Hashset<IoTString *>) {
+ liveKeys(new Hashset<IoTString *>()) {
}
Commit::Commit(int64_t _sequenceNumber, int64_t _machineId, int64_t _transactionSequenceNumber) :
sequenceNumber(_sequenceNumber),
machineId(_machineId),
transactionSequenceNumber(_transactionSequenceNumber),
- liveKeys(new Hashset<IoTString *>) {
+ liveKeys(new Hashset<IoTString *>()) {
}
Commit::~Commit() {
seqnumlive(true),
freespace(SLOT_SIZE - getBaseSize()),
table(_table),
- localSequenceNumber(_localSequenceNumber),
- fakeLastMessage(NULL) {
+ fakeLastMessage(NULL),
+ localSequenceNumber(_localSequenceNumber) {
}
Slot::Slot(Table *_table, int64_t _seqnum, int64_t _machineid, Array<char> *_prevhmac, int64_t _localSequenceNumber) :
seqnumlive(true),
freespace(SLOT_SIZE - getBaseSize()),
table(_table),
- localSequenceNumber(_localSequenceNumber),
- fakeLastMessage(NULL) {
+ fakeLastMessage(NULL),
+ localSequenceNumber(_localSequenceNumber) {
}
Slot::Slot(Table *_table, int64_t _seqnum, int64_t _machineid, int64_t _localSequenceNumber) :
seqnumlive(true),
freespace(SLOT_SIZE - getBaseSize()),
table(_table),
- localSequenceNumber(_localSequenceNumber),
- fakeLastMessage(NULL) {
+ fakeLastMessage(NULL),
+ localSequenceNumber(_localSequenceNumber) {
}
Slot::~Slot() {
}
SlotBuffer::~SlotBuffer() {
- uint index = tail;
+ int32_t index = tail;
while (index != head) {
delete array->get(index);
index++;
- if (index == array->length())
+ if (index == (int32_t) array->length())
index = 0;
}
delete array;
int64_t checkNum = (getNewestSeqNum() + 1);
if (checkNum != s->getSequenceNumber()) {
- uint index = tail;
+ int32_t index = tail;
while (index != head) {
delete array->get(index);
index++;
- if (index == array->length())
+ if (index == (int32_t) array->length())
index = 0;
}
oldestseqn = s->getSequenceNumber();