HomeClusterLabs Projects

cib: refactor: separate daemon-specific code from generic code

Description

cib: refactor: separate daemon-specific code from generic code

This revision refactors write_cib_contents() to not use crm_rename()
or retrieveCib() (along with misc. simplifications), simplifies
those two functions to the daemon-specific use case, and removes
validate_on_disk_cib().

The goal is to avoid using the daemon-specific global variable
cib_writes_enabled inside the non-daemon-specific portion of
write_cib_contents(), which is planned to be moved to the CIB library.

Details

Provenance
kgaillotAuthored on Feb 17 2015, 12:11 PM
Parents
rP9f83b4178903: cib: move disk validation code from CIB daemon to CIB library
Branches
Unknown
Tags
Unknown

Event Timeline