forked from acouzens/open5gs
Follow-up on #1758
This commit is contained in:
parent
7f5476b111
commit
a0d643e17f
|
@ -350,7 +350,8 @@ int ogs_app_context_parse_config(void)
|
|||
} else if (!strcmp(parameter_key, "no_pfcp_rr_select")) {
|
||||
self.parameter.no_pfcp_rr_select =
|
||||
ogs_yaml_iter_bool(¶meter_iter);
|
||||
} else if (!strcmp(parameter_key, "use_mongodb_change_stream")) {
|
||||
} else if (!strcmp(parameter_key,
|
||||
"use_mongodb_change_stream")) {
|
||||
self.use_mongodb_change_stream =
|
||||
ogs_yaml_iter_bool(¶meter_iter);
|
||||
} else
|
||||
|
|
|
@ -189,7 +189,8 @@ void ogs_dbi_final()
|
|||
ogs_mongoc_final();
|
||||
}
|
||||
|
||||
int ogs_dbi_collection_watch_init(void) {
|
||||
int ogs_dbi_collection_watch_init(void)
|
||||
{
|
||||
bson_t empty = BSON_INITIALIZER;
|
||||
const bson_t *err_doc;
|
||||
bson_error_t error;
|
||||
|
@ -214,7 +215,8 @@ int ogs_dbi_collection_watch_init(void) {
|
|||
return OGS_OK;
|
||||
}
|
||||
|
||||
int ogs_dbi_poll_change_stream(void) {
|
||||
int ogs_dbi_poll_change_stream(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
const bson_t *document;
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
#include "ogs-dbi.h"
|
||||
|
||||
int ogs_dbi_process_change_stream(const bson_t *document) {
|
||||
int ogs_dbi_process_change_stream(const bson_t *document)
|
||||
{
|
||||
int rv;
|
||||
|
||||
ogs_event_t *e = NULL;
|
||||
|
|
|
@ -31,8 +31,6 @@ const char *OGS_TIMER_NAME_SUBSCRIPTION_VALIDITY =
|
|||
"OGS_TIMER_SUBSCRIPTION_VALIDITY";
|
||||
const char *OGS_TIMER_NAME_SBI_CLIENT_WAIT =
|
||||
"OGS_TIMER_SBI_CLIENT_WAIT";
|
||||
const char *OGS_TIMER_NAME_DBI_POLL_CHANGE_STREAM =
|
||||
"OGS_TIMER_DBI_POLL_CHANGE_STREAM";
|
||||
|
||||
const char *ogs_timer_get_name(int timer_id)
|
||||
{
|
||||
|
@ -50,7 +48,7 @@ const char *ogs_timer_get_name(int timer_id)
|
|||
case OGS_TIMER_SBI_CLIENT_WAIT:
|
||||
return OGS_TIMER_NAME_SBI_CLIENT_WAIT;
|
||||
case OGS_TIMER_DBI_POLL_CHANGE_STREAM:
|
||||
return OGS_TIMER_NAME_DBI_POLL_CHANGE_STREAM;
|
||||
return "OGS_TIMER_DBI_POLL_CHANGE_STREAM";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1175,7 +1175,8 @@ char *hss_cx_download_user_data(
|
|||
return user_data;
|
||||
}
|
||||
|
||||
int hss_db_poll_change_stream(void) {
|
||||
int hss_db_poll_change_stream(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
ogs_thread_mutex_lock(&self.db_lock);
|
||||
|
@ -1187,7 +1188,8 @@ int hss_db_poll_change_stream(void) {
|
|||
return rv;
|
||||
}
|
||||
|
||||
int hss_handle_change_event(const bson_t *document) {
|
||||
int hss_handle_change_event(const bson_t *document)
|
||||
{
|
||||
bson_iter_t iter, child1_iter, child2_iter, child3_iter;
|
||||
|
||||
char *utf8 = NULL;
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "hss-context.h"
|
||||
#include "hss-event.h"
|
||||
|
||||
#define DB_POLLING_TIME ogs_time_from_msec(100)
|
||||
|
||||
static ogs_timer_t *t_db_polling = NULL;
|
||||
|
||||
void hss_state_initial(ogs_fsm_t *s, ogs_event_t *e)
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define DB_POLLING_TIME ogs_time_from_msec(100)
|
||||
|
||||
void hss_state_initial(ogs_fsm_t *s, ogs_event_t *e);
|
||||
void hss_state_final(ogs_fsm_t *s, ogs_event_t *e);
|
||||
void hss_state_operational(ogs_fsm_t *s, ogs_event_t *e);
|
||||
|
|
Loading…
Reference in New Issue