From: Liguang Li Date: Mon, 28 Nov 2016 08:37:47 +0000 (+0800) Subject: Fix: truncate the metadata file in shm-path X-Git-Tag: v2.9.0~9 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=7adcc7bdbeab27d8c697944e5ae2fc8c37649e44;hp=7adcc7bdbeab27d8c697944e5ae2fc8c37649e44;p=lttng-tools.git 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 Signed-off-by: Jérémie Galarneau ---