Fix: initialize live_timer to 0 for snapshot session
authorAntoine Busque <abusque@efficios.com>
Tue, 1 Sep 2015 23:12:28 +0000 (19:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 04:35:35 +0000 (00:35 -0400)
The live timer was being initialized to -1 for snapshot sessions,
instead of the expected default value of 0 used elsewhere in the code.

Fixes #879

Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 217d45a2577f8f67df59cb5d65093f96e6caad24..766a138cb484e3defe5c36a126180c4186b84bdc 100644 (file)
@@ -2183,7 +2183,7 @@ int cmd_create_session_snapshot(char *name, struct lttng_uri *uris,
         * Create session in no output mode with URIs set to NULL. The uris we've
         * received are for a default snapshot output if one.
         */
-       ret = cmd_create_session_uri(name, NULL, 0, creds, -1);
+       ret = cmd_create_session_uri(name, NULL, 0, creds, 0);
        if (ret != LTTNG_OK) {
                goto error;
        }
This page took 0.028302 seconds and 4 git commands to generate.