X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FPendingTransaction.cc;h=f4532190bca1e43d490cc4717c200f1827c1a98d;hp=b1f6db3b2a21b44d2a339d0a889cb0886f2cf60b;hb=9c3fa5cbce287df14626d262bd0179e994338869;hpb=3e80b7cd423be3b7961a5f8d22bb6c274f1bc83a diff --git a/version2/src/C/PendingTransaction.cc b/version2/src/C/PendingTransaction.cc index b1f6db3..f453219 100644 --- a/version2/src/C/PendingTransaction.cc +++ b/version2/src/C/PendingTransaction.cc @@ -27,7 +27,7 @@ void PendingTransaction::addKV(KeyValue *newKV) { KeyValue *rmKV = NULL; // Make sure there are no duplicates - SetIterator *kvit = keyValueUpdateSet->iterator(); + SetIterator *kvit = keyValueUpdateSet->iterator(); while (kvit->hasNext()) { KeyValue *kv = kvit->next(); if (kv->getKey()->equals(newKV->getKey())) { @@ -71,7 +71,7 @@ bool PendingTransaction::checkArbitrator(int64_t arb) { } bool PendingTransaction::evaluateGuard(Hashtable *keyValTableCommitted, Hashtable *keyValTableSpeculative, Hashtable *keyValTablePendingTransSpeculative) { - SetIterator *kvit = keyValueGuardSet->iterator(); + SetIterator *kvit = keyValueGuardSet->iterator(); while (kvit->hasNext()) { KeyValue *kvGuard = kvit->next(); // First check if the key is in the speculative table, this is the @@ -139,7 +139,7 @@ Transaction *PendingTransaction::createTransaction() { } // Add the Guard Conditions - SetIterator *kvit = keyValueGuardSet->iterator(); + SetIterator *kvit = keyValueGuardSet->iterator(); while (kvit->hasNext()) { KeyValue *kv = kvit->next(); newTransaction->addGuardKV(kv); @@ -170,7 +170,7 @@ Array *PendingTransaction::convertDataToBytes() { bbEncode->putInt(keyValueUpdateSet->size()); // Encode all the guard conditions - SetIterator *kvit = keyValueGuardSet->iterator(); + SetIterator *kvit = keyValueGuardSet->iterator(); while (kvit->hasNext()) { KeyValue *kv = kvit->next(); kv->encode(bbEncode);