Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
gravel: kv: don't try to shutdown connection to nonexistent cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Serong <tserong@suse.com>
  • Loading branch information
tserong committed Aug 19, 2021
1 parent ada2991 commit 48b54e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gravel/controllers/kv.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def _cluster_connect(self):
self._config_watch = None
if self._ioctx:
self._ioctx.close()
self._cluster.shutdown()
if self._cluster:
self._cluster.shutdown()
logger.debug("Cluster connection is shut down")


Expand Down

0 comments on commit 48b54e2

Please sign in to comment.