edit
[iotcloud.git] / version2 / src / C / Transaction.cc
index 00d0882c5da034996ffedb134410e1525500e6f1..532d6e571e0b81e16457755af8f29ffcfb2ac83c 100644 (file)
@@ -2,7 +2,7 @@
 
 class Transaction {
 
-    Map<Integer, TransactionPart> parts = NULL;
+    Hashtable<Integer, TransactionPart> parts = NULL;
     Set<Integer> missingParts = NULL;
     List<Integer> partsPendingSend = NULL;
     bool isComplete = false;
@@ -24,7 +24,7 @@ class Transaction {
     bool hadServerFailure = false;
 
     Transaction() {
-        parts = new HashMap<Integer, TransactionPart>();
+        parts = new Hashtable<Integer, TransactionPart>();
         keyValueGuardSet = new HashSet<KeyValue>();
         keyValueUpdateSet = new HashSet<KeyValue>();
         partsPendingSend = new ArrayList<Integer>();
@@ -115,7 +115,7 @@ class Transaction {
         return clientLocalSequenceNumber;
     }
 
-    Map<Integer, TransactionPart> getParts() {
+    Hashtable<Integer, TransactionPart> getParts() {
         return parts;
     }
 
@@ -255,7 +255,7 @@ class Transaction {
         }
     }
 
-    bool evaluateGuard(Map<IoTString, KeyValue> committedKeyValueTable, Map<IoTString, KeyValue> speculatedKeyValueTable, Map<IoTString, KeyValue> pendingTransactionSpeculatedKeyValueTable) {
+    bool evaluateGuard(Hashtable<IoTString, KeyValue> committedKeyValueTable, Hashtable<IoTString, KeyValue> speculatedKeyValueTable, Hashtable<IoTString, KeyValue> pendingTransactionSpeculatedKeyValueTable) {
         for (KeyValue kvGuard : keyValueGuardSet) {
 
             // First check if the key is in the speculative table, this is the value of the latest assumption