Skip to content

Commit

Permalink
fixed error in patch
Browse files Browse the repository at this point in the history
  • Loading branch information
d-linko committed Feb 20, 2024
1 parent 5c7a527 commit 7c81334
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ion/ion-4.1.1-anms-db.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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.
*/
*/

0 comments on commit 7c81334

Please sign in to comment.