[Linux-ha-dev] Batch operations
zhenhltc at cn.ibm.com
Tue Mar 14 20:06:39 MST 2006
The GUI client and CIM need management library to implement batch operation.
It means that user can add a set of operations but not need do it actually,
then commit all these operations in one command.
To do this we need cib's help.
With current cib API all changes are sent cib daemon immeidately.
rc = cib_conn->cmds->update(
cib_conn, "crm_config", fragment, &output, 0);
Can we implement a kind of copied cib to do the batch operation?
The management library will create a copy of cib when user begins the batch operation.
Then all changes would be sent to this copy.
When user wants to commit, send the xml in local cib copy to cib daemon.
We can reuse the current cib code. Two functions may be enough:
copy_cib_conn() and commit_cib_conn().
And your suggestions on this batch operations?
Linux Technology Center
IBM China Development Lab, Beijing
More information about the Linux-HA-Dev