Fix a bug that caused blocks not to be properly re-used on checksum match.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 12 Dec 2007 19:36:50 +0000 (11:36 -0800)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Wed, 12 Dec 2007 19:36:50 +0000 (11:36 -0800)
scandir.cc

index 9727133..3a56d9c 100644 (file)
@@ -189,7 +189,7 @@ int64_t dumpfile(int fd, dictionary &file_info, const string &path,
                 ref = ObjectReference(ObjectReference::REF_ZERO);
                 ref.set_range(0, bytes);
             } else {
-                ObjectReference ref = db->FindObject(block_csum, bytes);
+                ref = db->FindObject(block_csum, bytes);
             }
 
             // Store a copy of the object if one does not yet exist