From a407c831df4d26d25e751dac44dce07536f91762 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 2 Jul 2020 10:51:10 +0100 Subject: [PATCH] [thin_repair] Fix segfault with metadata containing loops (bz1853241) 'seen' bit was being set too late. --- thin-provisioning/metadata_dumper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thin-provisioning/metadata_dumper.cc b/thin-provisioning/metadata_dumper.cc index 0dd43c6..2ceffcc 100644 --- a/thin-provisioning/metadata_dumper.cc +++ b/thin-provisioning/metadata_dumper.cc @@ -614,8 +614,8 @@ namespace { return it->second; } else { - node_info info = get_info_(b); examined_[b] = true; + node_info info = get_info_(b); if (!failed(info)) infos_.insert(make_pair(b, info));