From be0798a5350ff6f19c935fbd69fdd6eff65761fc Mon Sep 17 00:00:00 2001 From: Fei Chen Date: Mon, 9 Dec 2024 09:25:25 -0800 Subject: [PATCH] fixed a bug when updating server id dynamically Summary: only tpr server mode shall be updated. Reviewed By: avasylev Differential Revision: D66928849 fbshipit-source-id: afa82737c1d2b82432e3510021e342a982f6c427 --- katran/tpr/TcpPktRouter.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/katran/tpr/TcpPktRouter.h b/katran/tpr/TcpPktRouter.h index b0657092d..86b44ccca 100644 --- a/katran/tpr/TcpPktRouter.h +++ b/katran/tpr/TcpPktRouter.h @@ -71,6 +71,10 @@ class TcpPktRouter { return v6Id_; } + RunningMode getMode() { + return mode_; + } + /** * Collects aggregated tcp_router_stats over numCpus. */