]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: peers: export process_peer_sync() to improve traces
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 11:38:42 +0000 (12:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 11:38:42 +0000 (12:38 +0100)
This one will probably pop up from time to time in "show profiling",
better have it resolve.

src/peers.c

index f4553bc8de513c47e713abec9c6644385ef75701..a4854f4638e4798b9bec775cfaea2554469a7904 100644 (file)
@@ -2867,9 +2867,10 @@ static struct appctx *peer_session_create(struct peers *peers, struct peer *peer
 
 /*
  * Task processing function to manage re-connect, peer session
- * tasks wakeup on local update and heartbeat.
+ * tasks wakeup on local update and heartbeat. Let's keep it exported so that it
+ * resolves in stack traces and "show tasks".
  */
-static struct task *process_peer_sync(struct task * task, void *context, unsigned short state)
+struct task *process_peer_sync(struct task * task, void *context, unsigned short state)
 {
        struct peers *peers = context;
        struct peer *ps;