diff --git a/sonic-xcvrd/scripts/xcvrd b/sonic-xcvrd/scripts/xcvrd index 07a98e8f3beb..2ad3b198610b 100644 --- a/sonic-xcvrd/scripts/xcvrd +++ b/sonic-xcvrd/scripts/xcvrd @@ -790,9 +790,6 @@ class DomInfoUpdateTask(object): self.task_thread = None self.task_stopping_event = threading.Event() - # Load the namespace details first from the database_global.json file. - swsscommon.SonicDBConfig.initializeGlobalConfig() - def task_worker(self): helper_logger.log_info("Start DOM monitoring loop") @@ -840,9 +837,6 @@ class SfpStateUpdateTask(object): self.task_process = None self.task_stopping_event = multiprocessing.Event() - # Load the namespace details first from the database_global.json file. - swsscommon.SonicDBConfig.initializeGlobalConfig() - def _mapping_event_from_change_event(self, status, port_dict): """ mapping from what get_transceiver_change_event returns to event defined in the state machine @@ -1195,8 +1189,9 @@ class DaemonXcvrd(daemon_base.DaemonBase): self.log_error("Failed to load sfputil: %s" % (str(e)), True) sys.exit(SFPUTIL_LOAD_ERROR) - # Load the namespace details first from the database_global.json file. - swsscommon.SonicDBConfig.initializeGlobalConfig() + if multi_asic.is_multi_asic(): + # Load the namespace details first from the database_global.json file. + swsscommon.SonicDBConfig.initializeGlobalConfig() # Load port info try: