edits
[iotcloud.git] / version2 / src / C / CommitPart.cc
index 3b3a10e0c280cf60d753af7436c5adab677cbda9..4de55c925879d0c1d52f2025149eb34aa062a620 100644 (file)
@@ -16,8 +16,8 @@ class CommitPart extends Entry{
     Boolean isLastPart = false;
     char[] data = NULL;
 
-    Pair<Long, Integer> partId = NULL;
-    Pair<Long, Long> commitId = NULL;
+    Pair<int64_t int32_t> partId = NULL;
+    Pair<int64_t, int64_t> commitId = NULL;
 
 
     CommitPart(Slot s, int64_t _machineId, int64_t _sequenceNumber, int64_t _transactionSequenceNumber, int _partNumber, char[] _data, Boolean _isLastPart) {
@@ -29,8 +29,8 @@ class CommitPart extends Entry{
         isLastPart = _isLastPart;
         data = _data;
 
-        partId = new Pair<Long, Integer>(sequenceNumber, partNumber);
-        commitId = new Pair<Long, Long>(machineId, sequenceNumber);
+        partId = new Pair<int64_t int32_t>(sequenceNumber, partNumber);
+        commitId = new Pair<int64_t, int64_t>(machineId, sequenceNumber);
     }
 
     int getSize() {
@@ -56,11 +56,11 @@ class CommitPart extends Entry{
         return data;
     }
 
-    Pair<Long, Integer> getPartId() {
+    Pair<int64_t int32_t> getPartId() {
         return partId;
     }
 
-    Pair<Long, Long> getCommitId() {
+    Pair<int64_t, int64_t> getCommitId() {
         return commitId;
     }