]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/mgr_module: cache mgr_ip
authorSage Weil <sage@newdream.net>
Tue, 23 Nov 2021 17:32:40 +0000 (12:32 -0500)
committerNeha Ojha <nojha@redhat.com>
Wed, 16 Feb 2022 17:14:34 +0000 (17:14 +0000)
commit4a37f1cde5719e8a3f6f1aaba67d7a6a02bbd067
treeb3d7a9ae983c92a8201f5a3ed41cc99d392da289
parent27e1b75c621dbe090319fbdb1331696f4c914371
pybind/mgr/mgr_module: cache mgr_ip

This does not change for the lifetime of an active mgr module.  No need to
keep calling back into Mgr to re-fetch it.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 994832e8e50c3566e21928f6be61e45a4411e556)

 Conflicts:
src/pybind/mgr/mgr_module.py - self._db_lock = threading.Lock() DNE in pacific
src/pybind/mgr/mgr_module.py