X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FTable.h;h=b353fdf7485a30736a86221db5e6477e2fe9a0c1;hp=4463c8d3952c0c6cb71affe4ca6690636d9a5cb1;hb=41ff9c95ca5d4b707386c1b7e66df033169bf68d;hpb=4087b948a1cb6980a347cbc5ceebd40fade99b82 diff --git a/version2/src/C/Table.h b/version2/src/C/Table.h index 4463c8d..b353fdf 100644 --- a/version2/src/C/Table.h +++ b/version2/src/C/Table.h @@ -50,8 +50,8 @@ class Table { Slot * lastSlotAttemptedToSend = NULL; bool lastIsNewKey = false; int lastNewSize = 0; - Hashtable *> lastTransactionPartsSent = NULL; - List *lastPendingSendArbitrationEntriesToDelete = NULL; + Hashtable *> lastTransactionPartsSent = NULL; + Vector *lastPendingSendArbitrationEntriesToDelete = NULL; NewKey * lastNewKey = NULL; @@ -61,7 +61,7 @@ class Table { Hashtable * pendingTransactionSpeculatedKeyValueTable = NULL; // Table of speculated key value pairs, if there is a speculative value from the pending transactions Hashtable * liveNewKeyTable = NULL; // Table of live new keys Hashtable*> *lastMessageTable = NULL; // Last message sent by a client machine id -> (Seq Num, Slot or LastMessage); - Hashtable*> *rejectedMessageWatchListTable = NULL; // Table of machine Ids and the set of rejected messages they have not seen yet + Hashtable*> *rejectedMessageWatchVectorTable = NULL; // Table of machine Ids and the set of rejected messages they have not seen yet Hashtable *arbitratorTable = NULL; // Table of keys and their arbitrators Hashtable*, Abort*> *liveAbortTable = NULL; // Table live abort messages Hashtable*, TransactionPart*>*> *newTransactionParts = NULL; // transaction parts that are seen in this latest round of slots from the server @@ -72,11 +72,11 @@ class Table { Hashtable> *liveCommitsTable = NULL; Hashtable *liveCommitsByKeyTable = NULL; Hashtable *lastCommitSeenSequenceNumberByArbitratorTable = NULL; - Vector * rejectedSlotList = NULL; // List of rejected slots that have yet to be sent to the server - List *pendingTransactionQueue = NULL; - List *pendingSendArbitrationRounds = NULL; - List *pendingSendArbitrationEntriesToDelete = NULL; - Hashtable*> *transactionPartsSent = NULL; + Vector * rejectedSlotVector = NULL; // Vector of rejected slots that have yet to be sent to the server + Vector *pendingTransactionQueue = NULL; + Vector *pendingSendArbitrationRounds = NULL; + Vector *pendingSendArbitrationEntriesToDelete = NULL; + Hashtable*> *transactionPartsSent = NULL; Hashtable *outstandingTransactionStatus = NULL; Hashtable *liveAbortsGeneratedByLocal = NULL; Hashset*> *offlineTransactionsCommittedAndAtServer = NULL; @@ -222,7 +222,7 @@ class Table { * Add a rejected message entry to the watch set to keep track of which clients have seen that * rejected message entry and which have not. */ - void addWatchList(int64_t machineId, RejectedMessage entry); + void addWatchVector(int64_t machineId, RejectedMessage entry); /** * Check if the HMAC chain is not violated