]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/crash: Serialize command handling 38453/head
authorBoris Ranto <branto@redhat.com>
Sat, 5 Dec 2020 03:14:32 +0000 (04:14 +0100)
committerBoris Ranto <branto@redhat.com>
Sat, 5 Dec 2020 03:14:35 +0000 (04:14 +0100)
commitd98d141c4f90520ee0b20df2ae01563cfe6e03fe
treefeed66775194fcab4a4d302b7da15e2f29f56321
parent3dde92561f3cafcb57f4304c90033300812f7bb0
mgr/crash: Serialize command handling

All the implemented commands read or write the self.crashes structure.
We need to serialize them to avoid the threads from stepping over each
other toes.

This also makes sure that the main thread (serve method) does not
interfere with the commands.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/crash/module.py