Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Remove unused local variables. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
cb92c69c2a169970d6d8e2b30089ced9 |
| User & Date: | drh 2017-03-01 18:21:06.217 |
Context
|
2017-03-01
| ||
| 19:53 | Updates to the change log. ... (check-in: 537ab8868e user: drh tags: trunk) | |
| 18:21 | Remove unused local variables. ... (check-in: cb92c69c2a user: drh tags: trunk) | |
| 17:48 | The server issues an error asking the client to upgrade if the client is less than Fossil 2.0 and SHA3 content is encountered. ... (check-in: a13738764b user: drh tags: trunk) | |
Changes
Changes to src/rebuild.c.
| ︙ | ︙ | |||
340 341 342 343 344 345 346 |
** extracted in a random order. This feature is used to test the
** ability of fossil to accept records in any order and still
** construct a sane repository.
*/
int rebuild_db(int randomize, int doOut, int doClustering){
Stmt s, q;
int errCnt = 0;
| < | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
** extracted in a random order. This feature is used to test the
** ability of fossil to accept records in any order and still
** construct a sane repository.
*/
int rebuild_db(int randomize, int doOut, int doClustering){
Stmt s, q;
int errCnt = 0;
int incrSize;
Blob sql;
bag_init(&bagDone);
ttyOutput = doOut;
processCnt = 0;
if (ttyOutput && !g.fQuiet) {
|
| ︙ | ︙ |
Changes to src/tar.c.
| ︙ | ︙ | |||
474 475 476 477 478 479 480 |
){
Blob mfile, hash, file;
Manifest *pManifest;
ManifestFile *pFile;
Blob filename;
int nPrefix;
char *zName = 0;
| < | 474 475 476 477 478 479 480 481 482 483 484 485 486 487 |
){
Blob mfile, hash, file;
Manifest *pManifest;
ManifestFile *pFile;
Blob filename;
int nPrefix;
char *zName = 0;
unsigned int mTime;
content_get(rid, &mfile);
if( blob_size(&mfile)==0 ){
blob_zero(pTar);
return;
}
|
| ︙ | ︙ |
Changes to src/verify.c.
| ︙ | ︙ | |||
32 33 34 35 36 37 38 |
** Load the record identify by rid. Make sure we can reproduce it
** without error.
**
** Panic if anything goes wrong. If this procedure returns it means
** that everything is OK.
*/
static void verify_rid(int rid){
| | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
** Load the record identify by rid. Make sure we can reproduce it
** without error.
**
** Panic if anything goes wrong. If this procedure returns it means
** that everything is OK.
*/
static void verify_rid(int rid){
Blob uuid, content;
if( content_size(rid, 0)<0 ){
return; /* No way to verify phantoms */
}
blob_zero(&uuid);
db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid);
if( !hname_validate(blob_buffer(&uuid), blob_size(&uuid)) ){
fossil_fatal("not a valid rid: %d", rid);
|
| ︙ | ︙ |
Changes to src/vfile.c.
| ︙ | ︙ | |||
169 170 171 172 173 174 175 |
** If the mtime is used, it is used only to determine if files are the same.
** If the mtime of a file has changed, we still examine the on-disk content
** to see whether or not the edit was a null-edit.
*/
void vfile_check_signature(int vid, unsigned int cksigFlags){
int nErr = 0;
Stmt q;
| < | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
** If the mtime is used, it is used only to determine if files are the same.
** If the mtime of a file has changed, we still examine the on-disk content
** to see whether or not the edit was a null-edit.
*/
void vfile_check_signature(int vid, unsigned int cksigFlags){
int nErr = 0;
Stmt q;
int useMtime = (cksigFlags & CKSIG_HASH)==0
&& db_get_boolean("mtime-changes", 1);
db_begin_transaction();
db_prepare(&q, "SELECT id, %Q || pathname,"
" vfile.mrid, deleted, chnged, uuid, size, mtime,"
" CASE WHEN isexe THEN %d WHEN islink THEN %d ELSE %d END"
|
| ︙ | ︙ |
Changes to src/xfer.c.
| ︙ | ︙ | |||
753 754 755 756 757 758 759 |
** the hash given in pHash. Return non-zero for an error and 0 on success.
**
** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by
** the length of the input hash in pHash.
*/
static int check_tail_hash(Blob *pHash, Blob *pMsg){
Blob tail;
| < | 753 754 755 756 757 758 759 760 761 762 763 764 765 766 |
** the hash given in pHash. Return non-zero for an error and 0 on success.
**
** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by
** the length of the input hash in pHash.
*/
static int check_tail_hash(Blob *pHash, Blob *pMsg){
Blob tail;
int rc;
blob_tail(pMsg, &tail);
rc = hname_verify_hash(&tail, blob_buffer(pHash), blob_size(pHash));
blob_reset(&tail);
return rc==HNAME_ERROR;
}
|
| ︙ | ︙ |