@@ -187,11 +187,12 @@ get_op_input(const xmlNode *request)
187187}
188188
189189int
190- cib__perform_query (cib__op_fn_t fn , const char * section , xmlNode * req ,
191- xmlNode * * current_cib , xmlNode * * output )
190+ cib__perform_query (cib__op_fn_t fn , xmlNode * req , xmlNode * * current_cib ,
191+ xmlNode * * output )
192192{
193193 int rc = pcmk_rc_ok ;
194194 const char * op = NULL ;
195+ const char * section = NULL ;
195196 const char * user = NULL ;
196197 uint32_t call_options = cib_none ;
197198 xmlNode * input = NULL ;
@@ -204,6 +205,7 @@ cib__perform_query(cib__op_fn_t fn, const char *section, xmlNode *req,
204205 && (output != NULL ) && (* output == NULL ));
205206
206207 op = pcmk__xe_get (req , PCMK__XA_CIB_OP );
208+ section = pcmk__xe_get (req , PCMK__XA_CIB_SECTION );
207209 user = pcmk__xe_get (req , PCMK__XA_CIB_USER );
208210 pcmk__xe_get_flags (req , PCMK__XA_CIB_CALLOPT , & call_options , cib_none );
209211
@@ -462,13 +464,14 @@ set_update_origin(xmlNode *new_cib, const xmlNode *request)
462464}
463465
464466int
465- cib_perform_op (enum cib_variant variant , cib__op_fn_t fn , const char * section ,
466- xmlNode * req , bool * config_changed , xmlNode * * current_cib ,
467+ cib_perform_op (enum cib_variant variant , cib__op_fn_t fn , xmlNode * req ,
468+ bool * config_changed , xmlNode * * current_cib ,
467469 xmlNode * * result_cib , xmlNode * * diff , xmlNode * * output )
468470{
469471 int rc = pcmk_rc_ok ;
470472
471473 const char * op = NULL ;
474+ const char * section = NULL ;
472475 const char * user = NULL ;
473476 uint32_t call_options = cib_none ;
474477 xmlNode * input = NULL ;
@@ -492,6 +495,7 @@ cib_perform_op(enum cib_variant variant, cib__op_fn_t fn, const char *section,
492495 && (output != NULL ) && (* output == NULL ));
493496
494497 op = pcmk__xe_get (req , PCMK__XA_CIB_OP );
498+ section = pcmk__xe_get (req , PCMK__XA_CIB_SECTION );
495499 user = pcmk__xe_get (req , PCMK__XA_CIB_USER );
496500 pcmk__xe_get_flags (req , PCMK__XA_CIB_CALLOPT , & call_options , cib_none );
497501
0 commit comments