bareos: master eeb105c6

Author Committer Branch Timestamp Parent
Sebastian Sura Bareos Bot master 2024-07-11 07:52 master b1bf2450 Pending
Changeset python-fd: fix calling bareosfd functions to early

While it should technically be no problem to call the bareosfd capi
without holding the gil, we have to keep in mind that we are still
modifying shared global state and as such we need to serialize those
calls. (Ab-)Using the gil to do so is the easiest way to fix these
problems.

I am not 100% sure how running multiple plugin jobs in parallel never
ran into issues considering that handlePluginEvent was constantly
clobbering the global "plugin context" in bareosfd. Its possible that
im overlooking something.
mod - core/src/plugins/filed/python/python-fd.cc Diff File