1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-11 22:39:16 -04:00
ports/net/ceph14/files/patch-src_mgr_ActivePyModules.cc
Dima Panov 715e140759 net/ceph14: update to 14.2.21 release
Introduce option WITH_TESTS which covers all test/debug tools. Currently disabled due to linking errors

PR:		255763 (based on)
Approved by:	maintainer (implicit)
2021-05-18 10:34:31 +10:00

29 lines
1.4 KiB
C++

--- src/mgr/ActivePyModules.cc.orig 2021-05-13 17:23:08 UTC
+++ src/mgr/ActivePyModules.cc
@@ -497,7 +497,7 @@ void ActivePyModules::notify_all(const std::string &no
// Send all python calls down a Finisher to avoid blocking
// C++ code, and avoid any potential lock cycles.
dout(15) << "queuing notify to " << name << dendl;
- finisher.queue(new FunctionContext([module, notify_type, notify_id](int r){
+ finisher.queue(new FunctionContext([module = module, notify_type, notify_id](int r){
module->notify(notify_type, notify_id);
}));
}
@@ -516,7 +516,7 @@ void ActivePyModules::notify_all(const LogEntry &log_e
// log_entry: we take a copy because caller's instance is
// probably ephemeral.
dout(15) << "queuing notify (clog) to " << name << dendl;
- finisher.queue(new FunctionContext([module, log_entry](int r){
+ finisher.queue(new FunctionContext([module = module, log_entry](int r){
module->notify_clog(log_entry);
}));
}
@@ -1015,7 +1015,7 @@ void ActivePyModules::config_notify()
// Send all python calls down a Finisher to avoid blocking
// C++ code, and avoid any potential lock cycles.
dout(15) << "notify (config) " << name << dendl;
- finisher.queue(new FunctionContext([module](int r){
+ finisher.queue(new FunctionContext([module = module](int r){
module->config_notify();
}));
}