int64_t transactionSequenceNumber;
int32_t partNumber; // Parts position in the
bool fldisLastPart;
+ int32_t refCount;
Array<char> *data;
Pair<int64_t, int32_t> partId;
CommitPart(Slot *s, int64_t _machineId, int64_t _sequenceNumber, int64_t _transactionSequenceNumber, int _partNumber, Array<char> *_data, bool _isLastPart);
~CommitPart();
int getSize();
- void setSlot(Slot *s);
int getPartNumber();
int getDataSize();
Array<char> *getData();
- Pair<int64_t, int32_t> getPartId();
+ Pair<int64_t, int32_t> * getPartId();
Pair<int64_t, int64_t> getCommitId();
bool isLastPart();
int64_t getMachineId();
void encode(ByteBuffer *bb);
char getType();
Entry *getCopy(Slot *s);
+ void releaseRef() {if ((--refCount)==0) delete this;}
+ void acquireRef() {refCount++;}
};
Entry *CommitPart_decode(Slot *s, ByteBuffer *bb);