From be5328880c80c64300221f1919b8cb78981d3b78 Mon Sep 17 00:00:00 2001 From: Eduard Bagdasaryan Date: Fri, 10 Feb 2023 15:44:18 +0000 Subject: [PATCH] Run cache_peer probes without transaction context (#1256) Even when triggered by a master transaction, these background probes should not be associated with it. That transaction just wants to know whether the neighbor is "up" right now. The transaction does not wait (and is not aware of) the background probe its question may or may not have triggered. --- src/neighbors.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/neighbors.cc b/src/neighbors.cc index b0f235dd97..766d912e6c 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1145,7 +1145,10 @@ int neighborUp(const CachePeer * p) { if (!p->tcp_up) { - peerProbeConnect(const_cast(p)); + // TODO: When CachePeer gets its own CodeContext, pass that context instead of nullptr + CallService(nullptr, [&] { + peerProbeConnect(const_cast(p)); + }); return 0; } -- 2.47.3