Commit 5454915e authored by Grégory Wisniewski's avatar Grégory Wisniewski

Invalidate OID pool each time we reconnect to the primary because a new master

generate new OIDs from the last OID stored in storage which is not the last OID
allocated to clients.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@917 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8e56ee9b
......@@ -363,6 +363,7 @@ class Application(object):
lock = self._connecting_to_master_node_acquire()
try:
if self.master_conn is None:
self.new_oid_list = []
self.master_conn = self._connectToPrimaryMasterNode()
return self.master_conn
finally:
......
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