Removed and enabled code for compile options: RESTART_PLUGIN_RPC, XML_NEW_DIFFERENTIATE, OPTIMIZE_45_BIND and OPTIMIZE_45_SORT
This commit is contained in:
parent
a3b6ea9e10
commit
29235d5547
9 changed files with 27 additions and 112 deletions
|
|
@ -1425,7 +1425,6 @@ from_client_stats(clicon_handle h,
|
|||
return retval;
|
||||
}
|
||||
|
||||
#ifdef RESTART_PLUGIN_RPC
|
||||
/*! Request restart of specific plugins
|
||||
* @param[in] h Clicon handle
|
||||
* @param[in] xe Request: <rpc><xn></rpc>
|
||||
|
|
@ -1472,7 +1471,6 @@ from_client_restart_plugin(clicon_handle h,
|
|||
free(vec);
|
||||
return retval;
|
||||
}
|
||||
#endif /* RESTART_PLUGIN_RPC */
|
||||
|
||||
/*! Verify nacm user with peer uid credentials
|
||||
* @param[in] mode Peer credential mode: none, exact or except
|
||||
|
|
@ -1838,11 +1836,9 @@ backend_rpc_init(clicon_handle h)
|
|||
if (rpc_callback_register(h, from_client_stats, NULL,
|
||||
CLIXON_LIB_NS, "stats") < 0)
|
||||
goto done;
|
||||
#ifdef RESTART_PLUGIN_RPC
|
||||
if (rpc_callback_register(h, from_client_restart_plugin, NULL,
|
||||
CLIXON_LIB_NS, "restart-plugin") < 0)
|
||||
goto done;
|
||||
#endif
|
||||
retval =0;
|
||||
done:
|
||||
return retval;
|
||||
|
|
|
|||
|
|
@ -810,7 +810,6 @@ from_client_validate(clicon_handle h,
|
|||
return retval;
|
||||
} /* from_client_validate */
|
||||
|
||||
#ifdef RESTART_PLUGIN_RPC
|
||||
/*! Restart specific backend plugins without full backend restart
|
||||
* Note, depending on plugin callbacks, there may be other dependencies which may make this
|
||||
* difficult in the general case.
|
||||
|
|
@ -928,4 +927,4 @@ from_client_restart_one(clicon_handle h,
|
|||
retval = 0;
|
||||
goto done;
|
||||
}
|
||||
#endif /* RESTART_PLUGIN_RPC */
|
||||
|
||||
|
|
|
|||
|
|
@ -48,8 +48,6 @@ int from_client_commit(clicon_handle h, cxobj *xe, cbuf *cbret, void *arg, void
|
|||
int from_client_discard_changes(clicon_handle h, cxobj *xe, cbuf *cbret, void *arg, void *regarg);
|
||||
int from_client_cancel_commit(clicon_handle h, cxobj *xe, cbuf *cbret, void *arg, void *regarg);
|
||||
int from_client_validate(clicon_handle h, cxobj *xe, cbuf *cbret, void *arg, void *regarg);
|
||||
#ifdef RESTART_PLUGIN_RPC
|
||||
int from_client_restart_one(clicon_handle h, clixon_plugin *cp, cbuf *cbret);
|
||||
#endif
|
||||
|
||||
#endif /* _BACKEND_COMMIT_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue