From 32f9be8d6148381254a437241ce0d27d180884d2 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 24 Oct 2013 19:54:47 -0700 Subject: [PATCH] Segment expiration should affect metadata re-use too. --- metadata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.cc b/metadata.cc index 15bd7a5..63fdadc 100644 --- a/metadata.cc +++ b/metadata.cc @@ -373,7 +373,7 @@ void MetadataWriter::add(dictionary info) if (info == old_metadata && !flag_full_metadata) { ObjectReference ref = ObjectReference::parse(old_metadata_loc); - if (!ref.is_null()) { + if (!ref.is_null() && db->IsAvailable(ref)) { item.reused = true; item.ref = ref; } -- 2.20.1