edits
[iotcloud.git] / version2 / src / C / TransactionPart.h
index 84aa1b4b4a1ad5004e6a435a3870ae50c57408ff..c7b6a8a04dd1c773f233beb69b5c42f8417d7c34 100644 (file)
@@ -2,6 +2,7 @@
 #define TRANSACTIONPART_H
 #include "common.h"
 #include "Entry.h"
+#include "Pair.h"
 
 // Max size of the part excluding the fixed size header
 #define TransactionPart_MAX_NON_HEADER_SIZE 512
@@ -12,7 +13,7 @@ private:
        int64_t machineId;
        int64_t arbitratorId;
        int64_t clientLocalSequenceNumber;              // Sequence number of the transaction that this is a part of
-       int partNumber; // Parts position in the
+       int32_t partNumber;     // Parts position in the
        bool fldisLastPart;
 
        Pair<int64_t, int64_t> *transactionId;
@@ -34,7 +35,7 @@ public:
        }
 
        int getSize();
-       void setSlot(Slot s);
+       void setSlot(Slot* s);
        Pair<int64_t, int64_t> *getTransactionId();
        int64_t getArbitratorId();
        Pair<int64_t, int32_t> *getPartId();