Segment expiration should affect metadata re-use too.
authorMichael Vrable <vrable@cs.hmc.edu>
Fri, 25 Oct 2013 02:54:47 +0000 (19:54 -0700)
committerMichael Vrable <vrable@cs.hmc.edu>
Sun, 26 Jan 2014 23:48:08 +0000 (15:48 -0800)
metadata.cc

index 15bd7a5..63fdadc 100644 (file)
@@ -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;
         }