Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix a problem with file delta detection in extra_compression(). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
4fd147f8154fc774a2922f92b8bc44ad |
| User & Date: | drh 2017-09-19 04:05:43.772 |
Context
|
2017-09-19
| ||
| 17:24 | New submenu links to the artifact list and 250-largest artifacts pages. ... (check-in: 0594266c8e user: drh tags: trunk) | |
| 04:05 | Fix a problem with file delta detection in extra_compression(). ... (check-in: 4fd147f815 user: drh tags: trunk) | |
| 03:57 | Fix problems in the new content_deltify() routine. ... (check-in: cb29bc646b user: drh tags: trunk) | |
Changes
Changes to src/rebuild.c.
| ︙ | ︙ | |||
493 494 495 496 497 498 499 | db_finalize(&q); /* For individual files that have not been deltaed, try to find ** a parent which is an undeltaed file with the same name in a ** more recent branch. */ db_prepare(&q, | | > | 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 |
db_finalize(&q);
/* For individual files that have not been deltaed, try to find
** a parent which is an undeltaed file with the same name in a
** more recent branch.
*/
db_prepare(&q,
"SELECT DISTINCT blob.rid, mlink.fnid FROM blob, mlink, plink"
" WHERE NOT EXISTS(SELECT 1 FROM delta WHERE rid=blob.rid)"
" AND mlink.fid=blob.rid"
" AND mlink.mid=plink.cid"
" AND plink.cid=mlink.mid"
" ORDER BY mlink.fnid, plink.mtime DESC"
);
prevfnid = 0;
while( db_step(&q)==SQLITE_ROW ){
rid = db_column_int(&q, 0);
fnid = db_column_int(&q, 1);
if( fnid!=prevfnid ) nPrev = 0;
prevfnid = fnid;
if( nPrev>0 ){
content_deltify(rid, aPrev, nPrev, 0);
}
if( nPrev<N_NEIGHBOR ){
aPrev[nPrev++] = rid;
}else{
int i;
|
| ︙ | ︙ |