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>
Tue, 29 Nov 2016 17:53:45 +0000 (12:53 -0500)
commit6beb3779248926b2c75175b18e90ac883d528e3c
tree1696a9cc709170dc532d093f1c6f5f993e7588f5
parentb98ed3e5068bd2b5c9c99f6c9847cc81d330c84e
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.024864 seconds and 4 git commands to generate.