]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: rework kv store load path
authorJohn Spray <john.spray@redhat.com>
Mon, 9 Apr 2018 19:25:45 +0000 (15:25 -0400)
committerJohn Spray <john.spray@redhat.com>
Mon, 23 Apr 2018 11:29:45 +0000 (07:29 -0400)
commit37484af0b86083c02a7a506a0c9be02b3fd67b28
tree7e25cdbe6de01acf50941c46bfd2e4e14d74966f
parentbd80cf9398cf18a235170265cc6d9691772822bf
mgr: rework kv store load path

The locking and blocking around this was a bit
tricky.  Do the simple thing, and pull the
load_store out to Mgr so that it can be safely
done as part of the background_init process (just drop
Mgr::lock across blocking actions).

Signed-off-by: John Spray <john.spray@redhat.com>
12 files changed:
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/Mgr.cc
src/mgr/Mgr.h
src/mgr/MgrStandby.cc
src/mgr/PyModule.cc
src/mgr/PyModule.h
src/mgr/PyModuleRegistry.cc
src/mgr/PyModuleRegistry.h
src/mgr/StandbyPyModules.cc
src/mgr/StandbyPyModules.h