From: drh Date: Tue, 13 Mar 2007 16:33:42 +0000 (+0000) Subject: Add hyperlink anchors to the lockingv3.html document. (CVS 3685) X-Git-Tag: version-3.6.10~2485 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a26cdf9a61874c830107481f8927aa5c474850b2;p=thirdparty%2Fsqlite.git Add hyperlink anchors to the lockingv3.html document. (CVS 3685) FossilOrigin-Name: 3e66ea6f61abc0f95af3bb46ebc0e10b4dcd069b --- diff --git a/manifest b/manifest index c40aabbeb7..12800ee260 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Do\snot\scrash\swhen\sa\scorrupt\sdatabase\scontains\stwo\sindices\swith\sthe\ssame\sname.\s(CVS\s3684) -D 2007-03-13T16:32:25 +C Add\shyperlink\sanchors\sto\sthe\slockingv3.html\sdocument.\s(CVS\s3685) +D 2007-03-13T16:33:43 F Makefile.in 1fe3d0b46e40fd684e1e61f8e8056cefed16de9f F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -415,7 +415,7 @@ F www/index-ex1-x-b.gif f9b1d85c3fa2435cf38b15970c7e3aa1edae23a3 F www/index.tcl 688cf1280232f4964d8d07fda65e166a4b2e16cc F www/indirect1b1.gif adfca361d2df59e34f9c5cac52a670c2bfc303a1 F www/lang.tcl cf204b6da4cf4ce2d47868092091a4cb7a9f8530 -F www/lockingv3.tcl f59b19d6c8920a931f096699d6faaf61c05db55f +F www/lockingv3.tcl e52345bd20323bef6146bfce18ae0829b2b7c87d F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c F www/nulls.tcl ec35193f92485b87b90a994a01d0171b58823fcf F www/oldnews.tcl 32688aa238d455f080501201a25001cbf45f2bb0 @@ -436,7 +436,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P e20e76f6d8578f4faab0b101b6d4deb2a8987454 -R 9273c66be575d7182b4b1faa7a816ce7 -U danielk1977 -Z 7529e5f446ae1176d63e7d8f55ccdbb4 +P 48b2a40008a09881ed9da3548095495a3d4a6647 +R 71fd10c40372f71bc80b6c2d2832c818 +U drh +Z c1407752a27a9f8ad9c30a93e200acaf diff --git a/manifest.uuid b/manifest.uuid index 41e8959dbe..9fe5df2e68 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -48b2a40008a09881ed9da3548095495a3d4a6647 \ No newline at end of file +3e66ea6f61abc0f95af3bb46ebc0e10b4dcd069b \ No newline at end of file diff --git a/www/lockingv3.tcl b/www/lockingv3.tcl index 5266a5e87e..c51cf79804 100644 --- a/www/lockingv3.tcl +++ b/www/lockingv3.tcl @@ -5,7 +5,7 @@ set rcsid {$Id: } source common.tcl header {File Locking And Concurrency In SQLite Version 3} -proc HEADING {level title} { +proc HEADING {level title {label {}}} { global pnum incr pnum($level) foreach i [array names pnum] { @@ -17,6 +17,9 @@ proc HEADING {level title} { for {set i 3} {$i<=$level} {incr i} { append n .$pnum($i) } + if {$label!=""} { + puts "" + } puts "$n $title" } set pnum(1) 0 @@ -42,7 +45,7 @@ of SQLite version 3.

} -HEADING 1 {Overview} +HEADING 1 {Overview} overview puts {

@@ -81,7 +84,7 @@ word "process" is written you may substitute the word "thread" without changing the truth of the statement.

} -HEADING 1 {Locking} +HEADING 1 {Locking} locking puts {

@@ -149,7 +152,7 @@ does not track PENDING locks.

} -HEADING 1 {The Rollback Journal} +HEADING 1 {The Rollback Journal} rollback puts {

Any time a process wants to make a changes to a database file, it @@ -213,7 +216,7 @@ preceding rules will be repeated in bullets: } -HEADING 2 {Dealing with hot journals} +HEADING 2 {Dealing with hot journals} hot_journals puts {

@@ -257,7 +260,7 @@ read from the database file. Once all reading has completed, the SHARED lock is dropped.

} -HEADING 2 {Deleting stale master journals} +HEADING 2 {Deleting stale master journals} stale_master_journals puts {

A stale master journal is a master journal that is no longer being @@ -274,7 +277,7 @@ or refer to other master journals or no master journal at all, then the master journal we are testing is stale and can be safely deleted.

} -HEADING 1 {Writing to a database file} +HEADING 1 {Writing to a database file} writing puts {

To write to a database, a process must first acquire a SHARED lock @@ -401,7 +404,7 @@ commit sequence is used, as follows:

} -HEADING 2 {Writer starvation} +HEADING 2 {Writer starvation} writer_starvation puts {

In SQLite version 2, if many processes are reading from the database, @@ -420,7 +423,7 @@ eventually complete, all SHARED locks will eventually clear and the writer will be given a chance to make its changes.

} -HEADING 1 {How To Corrupt Your Database Files} +HEADING 1 {How To Corrupt Your Database Files} how_to_corrupt puts {

The pager module is robust but it is not completely failsafe. @@ -515,7 +518,7 @@ after a power failure.

} -HEADING 1 {Transaction Control At The SQL Level} +HEADING 1 {Transaction Control At The SQL Level} transaction_control puts {