Fix: truncate the metadata file in shm-path
authorLiguang Li <liguang.li@windriver.com>
Mon, 28 Nov 2016 08:37:47 +0000 (16:37 +0800)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 28 Nov 2016 22:00:21 +0000 (17:00 -0500)
commit7adcc7bdbeab27d8c697944e5ae2fc8c37649e44
tree95edfa514f59e2deb9b30092ef9639fb6df80d52
parent4bbf55e88cadba39bded102f1bca25e440212f46
Fix: truncate the metadata file in shm-path

In the shm-path mode, the metadata will be backuped to a metadata
file, when run the lttng command "lttng metadata regenerate" to
resample the wall time following a major NTP correction, the metadata
file will not be truncated and regenerated.

Add the function clear_metadata_file() to truncate and regenerate the
metadata file.

Signed-off-by: Liguang Li <liguang.li@windriver.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
This page took 0.025382 seconds and 4 git commands to generate.