[SBI] fixed the SMF discover bug (#1440)
This commit is contained in:
parent
ff242cd6ea
commit
49c34605db
|
@ -52,15 +52,6 @@ typedef struct ogs_sbi_context_s {
|
||||||
const char *content_encoding;
|
const char *content_encoding;
|
||||||
} ogs_sbi_context_t;
|
} ogs_sbi_context_t;
|
||||||
|
|
||||||
#define OGS_SETUP_SBI_NF_INSTANCE(__cTX, __pNF_INSTANCE) \
|
|
||||||
do { \
|
|
||||||
ogs_assert((__pNF_INSTANCE)); \
|
|
||||||
if ((__cTX) != __pNF_INSTANCE) \
|
|
||||||
__pNF_INSTANCE->reference_count++; \
|
|
||||||
(__cTX) = __pNF_INSTANCE; \
|
|
||||||
ogs_trace("nf_instance->reference_count = %d", \
|
|
||||||
__pNF_INSTANCE->reference_count); \
|
|
||||||
} while(0)
|
|
||||||
typedef struct ogs_sbi_nf_instance_s {
|
typedef struct ogs_sbi_nf_instance_s {
|
||||||
ogs_lnode_t lnode;
|
ogs_lnode_t lnode;
|
||||||
|
|
||||||
|
@ -311,10 +302,7 @@ OpenAPI_uri_scheme_e ogs_sbi_default_uri_scheme(void);
|
||||||
OGS_SBI_NF_INSTANCE((__sBIObject), (__nFType))); \
|
OGS_SBI_NF_INSTANCE((__sBIObject), (__nFType))); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
if (OGS_SBI_NF_INSTANCE( \
|
(__nFInstance)->reference_count++; \
|
||||||
(__sBIObject), (__nFType)) != (__nFInstance)) { \
|
|
||||||
(__nFInstance)->reference_count++; \
|
|
||||||
} \
|
|
||||||
OGS_SBI_NF_INSTANCE((__sBIObject), (__nFType)) = (__nFInstance); \
|
OGS_SBI_NF_INSTANCE((__sBIObject), (__nFType)) = (__nFInstance); \
|
||||||
ogs_trace("nf_instance->reference_count = %d", \
|
ogs_trace("nf_instance->reference_count = %d", \
|
||||||
(__nFInstance)->reference_count); \
|
(__nFInstance)->reference_count); \
|
||||||
|
|
Loading…
Reference in New Issue