cfs status: drop old pve2-vm rrd schema support
the newer pve2.3-vm schema has been introduced with commit ba9dcfc1 back
in 2013. By now there should be no cluster where an older node might
still send the old pve2-vm schema.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Link: https://lore.proxmox.com/20250715143218.1548306-7-a.lauterer@proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
313f034e39
commit
038102dbd6
1 changed files with 3 additions and 9 deletions
|
|
@ -1234,16 +1234,10 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) {
|
|||
create_rrd_file(filename, argcount, rrd_def_node);
|
||||
}
|
||||
|
||||
} else if ((strncmp(key, "pve2-vm/", 8) == 0) || (strncmp(key, "pve2.3-vm/", 10) == 0)) {
|
||||
const char *vmid;
|
||||
} else if (strncmp(key, "pve2.3-vm/", 10) == 0) {
|
||||
const char *vmid = key + 10;
|
||||
|
||||
if (strncmp(key, "pve2-vm/", 8) == 0) {
|
||||
vmid = key + 8;
|
||||
skip = 2;
|
||||
} else {
|
||||
vmid = key + 10;
|
||||
skip = 4;
|
||||
}
|
||||
skip = 4;
|
||||
|
||||
if (strchr(vmid, '/') != NULL) {
|
||||
goto keyerror;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue