X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=localdb.cc;h=17337f01b028d02776df674717f19d0bb1a0190a;hb=722040937d7709a7b976bf57b045dac6d703c893;hp=004391b5f0ce54bae982c0d5b831e981d58ffdd1;hpb=ab51d5778a1f19c204c935de231737df2e62c20c;p=cumulus.git diff --git a/localdb.cc b/localdb.cc index 004391b..17337f0 100644 --- a/localdb.cc +++ b/localdb.cc @@ -258,6 +258,7 @@ ObjectReference LocalDb::FindObject(const string &checksum, int64_t size) } else if (rc == SQLITE_ROW) { ref = ObjectReference(IdToSegment(sqlite3_column_int64(stmt, 0)), (const char *)sqlite3_column_text(stmt, 1)); + ref.set_range(0, size); } else { fprintf(stderr, "Could not execute SELECT statement!\n"); ReportError(rc);