projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f51dde
)
Fix: missing LTTNG_OK return value for snapshot
author
David Goulet
<dgoulet@efficios.com>
Mon, 4 Nov 2013 21:27:00 +0000
(16:27 -0500)
committer
David Goulet
<dgoulet@efficios.com>
Mon, 4 Nov 2013 21:27:00 +0000
(16:27 -0500)
After a successful kernel snapshot, the ret = LTTNG_OK was missing thus
returning 0 to the caller which was expecting LTTNG_OK.
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/kernel.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/kernel.c
b/src/bin/lttng-sessiond/kernel.c
index 5eda0775884cb93d7bbabe01df3e89c05659753a..531f65488568e2f9f6d4033781230af3def1ca7f 100644
(file)
--- a/
src/bin/lttng-sessiond/kernel.c
+++ b/
src/bin/lttng-sessiond/kernel.c
@@
-927,6
+927,8
@@
int kernel_snapshot_record(struct ltt_kernel_session *ksess,
(void) kernel_consumer_destroy_metadata(socket, ksess->metadata);
}
+ ret = LTTNG_OK;
+
error_consumer:
/* Close newly opened metadata stream. It's now on the consumer side. */
err = close(ksess->metadata_stream_fd);
This page took
0.026322 seconds
and
4
git commands to generate.