]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Missed two THREAD_LOCAL attributes on object pointers.
authorEd Borgoyn <eborgoyn@cisco.com>
Thu, 28 Apr 2016 17:24:40 +0000 (13:24 -0400)
committerEd Borgoyn <eborgoyn@cisco.com>
Thu, 28 Apr 2016 17:24:40 +0000 (13:24 -0400)
src/stream/base/stream_ha.cc
src/stream/base/stream_ha.h
src/stream/udp/udp_ha.cc
src/stream/udp/udp_ha.h

index 37143dcc4133596648a17def9a5f35b4996038f8..b43cf1b569118783edfc9bd6efc3ebc066dc190f 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "stream_ha.h"
 
+#include <thread>
+
 #include "main/snort_debug.h"
 
 typedef LwState SessionHAContent;
@@ -54,7 +56,7 @@ void ProtocolHA::process_deletion(Flow* flow)
     HighAvailabilityManager::process_deletion(flow);
 }
 
-StreamHAClient* StreamHAManager::ha_client;
+THREAD_LOCAL StreamHAClient* StreamHAManager::ha_client;
 
 void StreamHAManager::tinit()
 {
index 0a7d5ce68cfd063785f9afad1bfb0cd7fc922aa5..6bc7ae35fb994bd141b56de6e662ff274a143770 100644 (file)
@@ -58,7 +58,7 @@ public:
     static void tterm();
     static void process_deletion(Flow*);
 
-    static StreamHAClient* ha_client;
+    static THREAD_LOCAL StreamHAClient* ha_client;
 };
 #endif
 
index 2161a983de48a83b7ca1cb91b64bd96d613eec29..66227886e12bfc8e90c4a38e88e07504b6b2451a 100644 (file)
@@ -31,7 +31,7 @@ void UdpHA::create_session(Flow*)
     DebugMessage(DEBUG_HA,"UdpHA::create_session)\n");
 }
 
-UdpHA* UdpHAManager::udp_ha;
+THREAD_LOCAL UdpHA* UdpHAManager::udp_ha;
 
 void UdpHAManager::tinit()
 {
index 4e31b62d5b79b357868c589562ca3d837b6b0038..4f69d29c8783a4a7abdad36d01222ef5d2fbd693 100644 (file)
@@ -44,7 +44,7 @@ public:
     { udp_ha->process_deletion(flow); }
     static void tinit();
     static void tterm();
-    static UdpHA* udp_ha;
+    static THREAD_LOCAL UdpHA* udp_ha;
 };
 #endif