From: Brian Warner Date: Mon, 20 Jul 2009 01:04:56 +0000 (-0700) Subject: docs/backupdb.txt: small fixes, thanks to David Triendl X-Git-Tag: allmydata-tahoe-1.5.0~35 X-Git-Url: https://git.rkrishnan.org/simplejson/components/com_hotproperty/status?a=commitdiff_plain;h=9b18930c2fafbe1de8e01f4e9e0584e949bd23dd;p=tahoe-lafs%2Ftahoe-lafs.git docs/backupdb.txt: small fixes, thanks to David Triendl --- diff --git a/docs/backupdb.txt b/docs/backupdb.txt index 23daaeda..d162f818 100644 --- a/docs/backupdb.txt +++ b/docs/backupdb.txt @@ -79,8 +79,9 @@ The upload process starts with a pathname (like ~/.emacs) and wants to end up with a file-cap (like URI:CHK:...). The first step is to convert the path to an absolute form -(/home/warner/emacs) and do a lookup in the last_upload table. If the path is -not present in this table, the file must be uploaded. The upload process is: +(/home/warner/.emacs) and do a lookup in the local_files table. If the path +is not present in this table, the file must be uploaded. The upload process +is: 1. record the file's size, creation time, and modification time 2. upload the file into the grid, obtaining an immutable file read-cap @@ -89,9 +90,9 @@ not present in this table, the file must be uploaded. The upload process is: 5. add an entry to the 'local_files' table, with the fileid, the path, and the local file's size/ctime/mtime -If the path *is* present in 'last_upload', the easy-to-compute identifying +If the path *is* present in 'local_files', the easy-to-compute identifying information is compared: file size and ctime/mtime. If these differ, the file -must be uploaded. The row is removed from the last_upload table, and the +must be uploaded. The row is removed from the local_files table, and the upload process above is followed. If the path is present but ctime or mtime differs, the file may have changed.