Commit 2a8d9c18 authored by Jim Fulton's avatar Jim Fulton

Must stop abusing assert!

parent 60cff1c0
...@@ -768,7 +768,8 @@ class StorageServerWrapper: ...@@ -768,7 +768,8 @@ class StorageServerWrapper:
self.server.tpc_begin(id(transaction), '', '', {}, None, ' ') self.server.tpc_begin(id(transaction), '', '', {}, None, ' ')
def tpc_vote(self, transaction): def tpc_vote(self, transaction):
assert self.server.vote(id(transaction)) is None vote_result = self.server.vote(id(transaction))
assert vote_result is None
result = self.server.client.serials[:] result = self.server.client.serials[:]
del self.server.client.serials[:] del self.server.client.serials[:]
return result return result
......
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