Skip to content

Commit

Permalink
in_systemd: Process enumerated data as cfl_kvlist(s) at first
Browse files Browse the repository at this point in the history
This is because systemctl's -o json-pretty or -o json converts
duplicated keys' values as array(s).
To avoid generating the duplicated key(s) does not resolve this issue.
Instead, we need to store as cfl_kvlist at first to detect duplicated
keys on enumerated data in journal storage.
Then, we also need to generate as msgpack's array format when the
duplicated key(s) were detected and translated as array format when
storing as cfl_kvlist(s).

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Dec 6, 2024
1 parent 9b7aa9c commit 6790b26
Show file tree
Hide file tree
Showing 2 changed files with 290 additions and 49 deletions.
Loading

0 comments on commit 6790b26

Please sign in to comment.