Commit fd8d511b authored by Jim Fulton's avatar Jim Fulton

Added check for pathelogical case of None return from storage undo.

parent 230ffbe8
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__version__ = "$Revision: 1.15 $"[11:-2] __version__ = "$Revision: 1.16 $"[11:-2]
import asyncore, socket, string, sys, cPickle, os import asyncore, socket, string, sys, cPickle, os
from smac import SizedMessageAsyncConnection from smac import SizedMessageAsyncConnection
...@@ -430,9 +430,12 @@ class Connection(SizedMessageAsyncConnection): ...@@ -430,9 +430,12 @@ class Connection(SizedMessageAsyncConnection):
def undo(self, transaction_id): def undo(self, transaction_id):
oids=self.__storage.undo(transaction_id) oids=self.__storage.undo(transaction_id)
self.__server.invalidate( if oids:
self, self.__storage_id, map(lambda oid: (oid,None,''), oids)) self.__server.invalidate(
return oids self, self.__storage_id, map(lambda oid: (oid,None,''), oids)
)
return oids
return ()
def tpc_abort(self, id): def tpc_abort(self, id):
t=self._transaction t=self._transaction
......
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