upstream: register new HA mode flags
#ifndef FLB_UPSTREAM_H
#define FLB_UPSTREAM_H
-
#include <monkey/mk_core.h>
#include <fluent-bit/flb_info.h>
@@ -59,6 +58,14 @@ struct flb_upstream {
*/
int max_connections;
+ /*
+ * If an upstream context has been created in HA mode, this flag is
+ * set to True and the field 'ha_ctx' will reference a HA upstream
+ * context.
+ */
+ int ha_mode;
+ void *ha_ctx;
+
/*
* This field is a linked-list-head for upstream connections that
* are available for usage. When a connection is taken, it's moved to the
@@ -76,10 +83,6 @@ struct flb_upstream {
/* context with mbedTLS data to handle certificates and keys */
struct flb_tls *tls;
#endif
-
-#ifdef FLB_HAVE_FLUSH_PTHREADS
- pthread_mutex_t mutex_queue;
-#endif
};
/* Upstream TCP connection */
