]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/crash: Serialize command handling 39338/head
authorBoris Ranto <branto@redhat.com>
Sat, 5 Dec 2020 03:14:32 +0000 (04:14 +0100)
committerNathan Cutler <ncutler@suse.com>
Sun, 7 Feb 2021 12:44:28 +0000 (13:44 +0100)
commitc196191e98cb1b43a7ea218e946d0abeea68aec3
tree61c132d316d1c3422342f561c9f54a8b11e14e59
parentf9c422aad058900772e144b1e747cee5fcb5727d
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>
(cherry picked from commit d98d141c4f90520ee0b20df2ae01563cfe6e03fe)

Conflicts:
src/pybind/mgr/crash/module.py
- no "import re" in the stable branch
src/pybind/mgr/crash/module.py