From: Michael Vrable Date: Fri, 25 Oct 2013 02:54:47 +0000 (-0700) Subject: Segment expiration should affect metadata re-use too. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=32f9be8d6148381254a437241ce0d27d180884d2;p=cumulus.git Segment expiration should affect metadata re-use too. --- 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; }