Skip to content

Commit

Permalink
start monitor client before waiting
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Dec 5, 2023
1 parent 4a636e1 commit 861be1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def serve(self):
# install SIGCHLD handler
signal.signal(signal.SIGCHLD, sigchld_handler)

# Start monitor client
self._start_monitor_client()

# wait for monitor notification of the group id
self._wait_for_group_id()

Expand All @@ -159,9 +162,6 @@ def serve(self):
# Start server
self.server.start()

# Start monitor client
self._start_monitor_client()

def _start_monitor_client(self):
"""Runs CEPH NVMEOF Monitor Client."""
enable_monitor_client = self.config.getboolean_with_default("gateway", "enable_monitor_client", True)
Expand Down

0 comments on commit 861be1c

Please sign in to comment.