Commit 86a7c851 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Support of George Bailey object (one who's creation has been transactionally

undone)


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1274 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2f580901
......@@ -598,6 +598,8 @@ class Application(object):
self.mq_cache[oid] = start_serial, data
finally:
self._cache_lock_release()
if data == '':
data = None
return data, start_serial, end_serial
......@@ -665,9 +667,12 @@ class Application(object):
cell_list = self._getCellListForOID(oid, writable=True)
if len(cell_list) == 0:
raise NEOStorageError
# Store data on each node
if data is None:
# this is a George Bailey object, stored as an empty string
data = ''
compressed_data = compress(data)
checksum = makeChecksum(compressed_data)
# Store data on each node
self.local_var.object_stored_counter = 0
for cell in cell_list:
conn = self.cp.getConnForCell(cell)
......
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