} 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);
+ ref.set_range(0, size, true);
} else {
fprintf(stderr, "Could not execute SELECT statement!\n");
ReportError(rc);
char buf[64];
if (range_exact) {
sprintf(buf, "[=%zu]", range_length);
- } else if (range_start == 0) {
+ } else if (type == REF_ZERO) {
sprintf(buf, "[%zu]", range_length);
} else {
sprintf(buf, "[%zu+%zu]", range_start, range_length);
db->StoreObject(ref, block_csum, analyzed_len, block_age);
if (analyzed_len >= 16384)
store_block_signatures(ref, new_block_summary);
+ ref.set_range(0, analyzed_len, true);
refs.push_back(ref);
delete o;
return refs;