Modify ChainedTransactionProxy to override sending of FindPrimaryShard 59/16159/3
authorTom Pantelis <tpanteli@brocade.com>
Sun, 8 Mar 2015 02:16:37 +0000 (21:16 -0500)
committerMoiz Raja <moraja@cisco.com>
Tue, 10 Mar 2015 18:55:17 +0000 (18:55 +0000)
Previously, ChainedTransactionProxy overrode the sendCreateTransaction
method from TransactionProxy to intercept the sending of the
CreateTransaction message in order to asynchronously wait for the
previous
transaction's ready Futures to complete before sending the message.

To facilitate write-only transaction optimizations which will not create
a separate transaction actor, we need to intercept the FindPrimaryShard
message instead. Thus a new overridden method,
sendFindPrimaryShardAsync, was added the same as sendCreateTransaction
except it sends the FindPrimaryShard message..

Change-Id: I5d0a3de0b9530a538e2425147fad8ace823763f3
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>

No differences found