struct { \
uint16_t flags; /* COUNTERS_SHARED_F flags */\
};
+
+/* /!\ any change performed here will impact shm-stats-file mapping because the
+ * struct is embedded in shm_stats_file_object struct, so proceed with caution
+ * and change shm stats file version if needed
+ */
#define COUNTERS_SHARED_TG \
struct { \
unsigned long last_state_change; /* last time, when the state was changed */\
} *tg[MAX_TGROUPS];
};
-/* counters used by listeners and frontends */
+/*
+ * /!\ any change performed here will impact shm-stats-file mapping because the
+ * struct is embedded in shm_stats_file_object struct, so proceed with caution
+ * and change shm stats file version if needed
+ */
struct fe_counters_shared_tg {
COUNTERS_SHARED_TG;
struct fe_counters_shared_tg *tg[MAX_TGROUPS];
};
+/* counters used by listeners and frontends */
struct fe_counters {
struct fe_counters_shared shared; /* shared counters */
unsigned int conn_max; /* max # of active sessions */
} p; /* protocol-specific stats */
};
+/* /!\ any change performed here will impact shm-stats-file mapping because the
+ * struct is embedded in shm_stats_file_object struct, so proceed with caution
+ * and change shm stats file version if needed
+ */
struct be_counters_shared_tg {
COUNTERS_SHARED_TG;