Cleanup to used data tracking in localdb.
authorMichael Vrable <vrable@cs.hmc.edu>
Thu, 25 Apr 2013 19:49:26 +0000 (12:49 -0700)
committerMichael Vrable <vrable@cs.hmc.edu>
Sun, 26 Jan 2014 20:26:33 +0000 (12:26 -0800)
localdb.cc

index a23ca5e..0c9dac4 100644 (file)
@@ -452,7 +452,7 @@ void LocalDb::UseObject(const ObjectReference& ref)
     // size will have a reference size capped at just less than the full object
     // size (we can't tell if some bytes were referenced multiple times, and
     // thus we conservatively assume some bytes might still be unreferenced).
-    int64_t new_refs = old_size;
+    int64_t new_refs;
     if (ref.has_range()) {
         new_refs = ref.get_range_length();
     } else {