From 7e4db2016060e8c837b4ad217b2ab4e410cb6644 Mon Sep 17 00:00:00 2001 From: Pat-Lafon <32135464+Pat-Lafon@users.noreply.github.com> Date: Wed, 18 Sep 2019 11:14:32 -0400 Subject: [PATCH] Updated Abort Abort now uses sendMessageAbortTransaction() Updated documentation to say it aborts the transaction --- src/main/python/antidotedb/antidoteclient.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/python/antidotedb/antidoteclient.py b/src/main/python/antidotedb/antidoteclient.py index 979b674..4e3a333 100644 --- a/src/main/python/antidotedb/antidoteclient.py +++ b/src/main/python/antidotedb/antidoteclient.py @@ -644,14 +644,11 @@ def commit( self) : return res.success == True def abort( self) : - """ Commit transaction. Commit time gets recoded in AntidoteClient as - last_commit + """ Abort transaction """ op = ApbAbortTransaction() op.transaction_descriptor = self.txDescriptor - self.antidoteClient.sendMessageCommitTransaction( op) - res = self.antidoteClient.recvMessageCommitResp() - return res + self.antidoteClient.sendMessageAbortTransaction( op) @@ -841,4 +838,4 @@ def sendMessageStaticReadObjects( self, msg) : - \ No newline at end of file +