]> git.ipfire.org Git - telemetry.git/commitdiff
queue: Actually store the object in the queue
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Oct 2025 11:21:13 +0000 (11:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Oct 2025 11:21:13 +0000 (11:21 +0000)
This used to never happen which is why sources with multiple objects had
their data written into the main RRD file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/queue.c

index ca8ebda7996fc6f3d94e280fc3bf84135b3ea9ae..8d91e8d3a677812bbc677173209a06656842307c 100644 (file)
@@ -312,7 +312,7 @@ int collecty_queue_submit(collecty_queue* self,
        o->source = collecty_source_ref(source);
 
        // Store the object
-       if (o->object) {
+       if (object) {
                o->object = strdup(object);
                if (!o->object) {
                        r = -errno;