From 7c813348ee211c9c2e76516ae0d1dd39c659d42e Mon Sep 17 00:00:00 2001 From: d-linko Date: Tue, 20 Feb 2024 14:25:25 -0500 Subject: [PATCH] fixed error in patch --- ion/ion-4.1.1-anms-db.patch | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ion/ion-4.1.1-anms-db.patch b/ion/ion-4.1.1-anms-db.patch index ac6efd3..51d701c 100644 --- a/ion/ion-4.1.1-anms-db.patch +++ b/ion/ion-4.1.1-anms-db.patch @@ -278,15 +278,19 @@ diff -ur ion-open-source-4.1.1/nm/mgr/nm_mgr_rx.c ion-open-source-4.1.1_postgres /* Copy the message group to the database tables */ uint32_t incoming_idx = db_incoming_initialize(grp->time, meta.senderEid); int32_t db_status = AMP_OK; -@@ -348,7 +348,7 @@ +@@ -347,10 +347,10 @@ void *mgr_rx_thread(int *running) + case MSG_TYPE_RPT_SET: { msg_rpt_t *rpt_msg = msg_rpt_deserialize(msg_data, &success); +- rx_data_rpt(&meta, rpt_msg); -#ifdef HAVE_MYSQL +#if defined(HAVE_MYSQL) || defined(HAVE_POSTGRESQL) db_insert_msg_rpt_set(incoming_idx, rpt_msg, &db_status); #endif - rx_data_rpt(&meta, rpt_msg); - msg_rpt_release(rpt_msg, 1); ++ rx_data_rpt(&meta, rpt_msg); + msg_rpt_release(rpt_msg, 1); + break; + } @@ -358,7 +358,7 @@ { msg_tbl_t *tbl_msg = msg_tbl_deserialize(msg_data, &success); @@ -3434,4 +3438,4 @@ diff -ur ion-open-source-4.1.1/nm/mgr/nm_mgr_ui.h ion-open-source-4.1.1_postgres + * appropriate formatting to the buffer. The buffer will be appended to be subsequent calls to * ui_printf(), and displayed with ui_display_exec(). The display function can be suppressed * in favor of file logging by calling ui_display_to_file() first. - */ + */ \ No newline at end of file