Commit 46d7cb02 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix a bug introduce in commit #451 : PTID initial was no stored in database at

storage bootstrap when default value was found (INVALID_PTID), but next writes
use UPDATE SQL statement, so the next PTID was never stored in the database if
no INSERT was done first.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@452 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5c6fd74a
...@@ -85,6 +85,8 @@ class Application(object): ...@@ -85,6 +85,8 @@ class Application(object):
elif name != self.name: elif name != self.name:
raise RuntimeError('name does not match with the database') raise RuntimeError('name does not match with the database')
self.ptid = dm.getPTID() # return ptid or INVALID_PTID self.ptid = dm.getPTID() # return ptid or INVALID_PTID
if self.ptid == INVALID_PTID:
dm.setPTID(self.ptid)
def loadPartitionTable(self): def loadPartitionTable(self):
"""Load a partition table from the database.""" """Load a partition table from the database."""
......
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