changeset 3491:4e9d4b07e3e9

mod_storage_xmlarchive: Remove per day files during migration
author Kim Alvefur <zash@zash.se>
date Sun, 17 Mar 2019 17:56:54 +0100
parents 972b21d34306
children f59334da6df9
files mod_storage_xmlarchive/mod_storage_xmlarchive.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Mar 18 21:26:06 2019 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun Mar 17 17:56:54 2019 +0100
@@ -336,6 +336,8 @@
 						data.attr.stamp_legacy = dt.legacy(data.when);
 						assert(dm.list_append(user, host, store, data));
 					end
+					assert(os.remove(dm.getpath(user .. "@" .. date, host, store, "list")));
+					assert(os.remove(dm.getpath(user .. "@" .. date, host, store, "xml")));
 				end
 			end
 		else -- convert from internal