From: Michael Vrable Date: Thu, 25 Apr 2013 19:49:26 +0000 (-0700) Subject: Cleanup to used data tracking in localdb. X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=commitdiff_plain;h=92139dd79d795c41df068b2ab379c40ccc275336 Cleanup to used data tracking in localdb. --- diff --git a/localdb.cc b/localdb.cc index a23ca5e..0c9dac4 100644 --- a/localdb.cc +++ b/localdb.cc @@ -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 {