Commit 9735d7d0 authored by Aurel's avatar Aurel

inform about all configuration data loaded from database at bootstrap


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@453 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 46d7cb02
...@@ -34,6 +34,7 @@ from neo.storage.verification import VerificationEventHandler ...@@ -34,6 +34,7 @@ from neo.storage.verification import VerificationEventHandler
from neo.storage.operation import OperationEventHandler from neo.storage.operation import OperationEventHandler
from neo.storage.replicator import Replicator from neo.storage.replicator import Replicator
from neo.connector import getConnectorHandler from neo.connector import getConnectorHandler
from neo.util import dump
class Application(object): class Application(object):
"""The storage node application.""" """The storage node application."""
...@@ -87,6 +88,8 @@ class Application(object): ...@@ -87,6 +88,8 @@ class Application(object):
self.ptid = dm.getPTID() # return ptid or INVALID_PTID self.ptid = dm.getPTID() # return ptid or INVALID_PTID
if self.ptid == INVALID_PTID: if self.ptid == INVALID_PTID:
dm.setPTID(self.ptid) dm.setPTID(self.ptid)
logging.info("loaded configuration from db : uuid = %s, ptid = %s, name = %s, np = %s" \
%(dump(self.uuid), dump(self.ptid), name, self.num_partitions))
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