Commit 1ea0b38
libpcp_import: address coderabbit review findings
pmiPutAtomValueHandle: validate atom is non-NULL before passing to
_pmi_stuff_atomvalue, returning PM_ERR_ARG to avoid a segfault on
PM_TYPE_STRING metrics where atom->cp would be dereferenced.
archive.c _pmi_do_desc: when a descriptor for this PMID already exists
in the archive, verify it is compatible before skipping the write.
A package upgrade may have corrected an incorrect type, semantics,
instance domain or units for a metric, in which case the old archive
cannot be extended with new data. Return PM_ERR_LOGCHANGETYPE,
PM_ERR_LOGCHANGESEM, PM_ERR_LOGCHANGEINDOM or PM_ERR_LOGCHANGEUNITS
as appropriate so the caller has a precise diagnosis.
qa/group: add local group to qa/1670 so the standard local sweep
picks up the new append-mode coverage.
Signed-off-by: Nathan Scott <nathans@redhat.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 4dc7e96 commit 1ea0b38
3 files changed
Lines changed: 43 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
149 | 165 | | |
150 | 166 | | |
151 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
203 | 214 | | |
204 | 215 | | |
205 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
354 | 365 | | |
355 | 366 | | |
356 | 367 | | |
| |||
895 | 906 | | |
896 | 907 | | |
897 | 908 | | |
| 909 | + | |
| 910 | + | |
898 | 911 | | |
899 | 912 | | |
900 | 913 | | |
| |||
0 commit comments