From d779b6c1fa9d4e9c436525faa45c6410a8f9eb5a Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 2 Aug 2013 13:14:49 +0100 Subject: [PATCH] [thin_repair] don't open the space maps in the old metadata, we'll regenerate. --- thin-provisioning/thin_repair.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thin-provisioning/thin_repair.cc b/thin-provisioning/thin_repair.cc index 4921ee9..f1b078a 100644 --- a/thin-provisioning/thin_repair.cc +++ b/thin-provisioning/thin_repair.cc @@ -19,7 +19,7 @@ namespace { metadata::ptr new_md(new metadata(new_path, metadata::CREATE, 128, 0)); emitter::ptr e = create_restore_emitter(new_md); - metadata::ptr old_md(new metadata(old_path, metadata::OPEN)); + metadata::ptr old_md(new metadata(old_path)); metadata_dump(old_md, e, true); } catch (std::exception &e) {