Skip to content

Commit

Permalink
doc/checksums: use $HASHTYPE for referring to hash names
Browse files Browse the repository at this point in the history
$NAME is potentially ambiguous and $HASHTYPE matches the
database column name.
  • Loading branch information
Eric Wong authored and dormando committed Mar 30, 2012
1 parent 1fd5ef4 commit 4937ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/checksums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ tracker protocol
Hex is used instead of binary over the wire, hex is already immune to
URL encoding in the tracker protocol.

Hashes are represented with in the $NAME:$HEXDIGEST format:
Hashes are represented with in the $HASHTYPE:$HEXDIGEST format:

MD5:68b329da9893e34099c7d8ad5cb9c940

verifying checksums (on disk)
-----------------------------

Ideally, mogstored checksum calculation is done by mogstored and only
the checksum (in $NAME=$HEXDIGEST format) is sent over the wire.
the checksum (in $HASHTYPE=$HEXDIGEST format) is sent over the wire.

If mogstored is not available, the checksum is calculated on the tracker
by streaming the file with HTTP GET.
Expand All @@ -30,7 +30,7 @@ create_close (query worker)
New optional parameters:

- checksumverify=(0|1) default: 0 (false)
- checksum=$NAME:$HEXDIGEST
- checksum=$HASHTYPE:$HEXDIGEST

If "checksumverify" is "1" and "checksum" is present, "create_close"
will not return until it has verified the checksum.
Expand Down

0 comments on commit 4937ade

Please sign in to comment.