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 21:50:40 +0000 (16:50 -0500)
commit7802bae326824ecb116cb0d782bb7472eaa6f6e4
tree4f51ef02edf72ea679ba217b68faa367e0ffb954
parent060e2e097f4125fdde16ed6919535f75696f9c7b
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.025696 seconds and 4 git commands to generate.