Commit 81e7018a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent eceb8b9e
...@@ -918,7 +918,6 @@ class LockInformation(Packet): ...@@ -918,7 +918,6 @@ class LockInformation(Packet):
PTID('ttid'), PTID('ttid'),
) )
# NOTE
class InvalidateObjects(Packet): class InvalidateObjects(Packet):
""" """
Invalidate objects. PM -> C. Invalidate objects. PM -> C.
......
...@@ -691,6 +691,29 @@ class NEOCluster(object): ...@@ -691,6 +691,29 @@ class NEOCluster(object):
return admin return admin
### ###
# A few handy shortcuts for tests
@property
def ptid(self):
return self.neoctl.getRecovery()[0]
@property
def backup_tid(self):
return self.neoctl.getRecovery()[1]
@property
def truncated_tid(self):
return self.neoctl.getRecovery()[2]
@property
def last_tid(self):
return self.primary_master.getLastTransaction()
@property
def cluster_state(self):
return self.neoctl.getClusterState()
###
@property @property
def primary_master(self): def primary_master(self):
master, = [master for master in self.master_list if master.primary] master, = [master for master in self.master_list if master.primary]
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment