HomeClusterLabs Projects

Log: based: Fix CIB version values

Description

Log: based: Fix CIB version values

939a408c, 8e9e6642, and 618e77d7 caused the CIB version attribute values
to get fetched too early in cib_process_request(). cib_process_command()
can change them.

This resulted in corruption (probably affecting only logging) after some
commands, with garbage values being logged. For example:

info: Completed cib_modify operation for section nodes: OK (rc=0, origin=laptop/crmd/4, version=<81>rcT.!^K9^H<9d>U.1^K9^H<9d>U)

We need to fetch the values after cib_process_command(). Here we do it
immediately before use.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jan 9 2024, 3:01 PM
Parents
rPed10df540be4: Merge pull request #3307 from clumens/flake8
Branches
Unknown
Tags
Unknown