Differences From Artifact [8bdecf001f]:
- File src/doc.c — part of check-in [3f5ab71744] at 2018-07-15 19:56:20 on branch trunk — Clarify the difference between fossil_fatal() and fossil_panic(). The fossil_panic() interface puts a message on the error log when generating webpages. Otherwise the two routines are identical. Convert some fossil_fatal() calls into fossil_panic() where appropriate. The goal here is to limit messages on the error log to things that require attention from the system administrator, or represent bugs. (user: drh size: 37265) [more...]
To Artifact [b40e2b92da]:
- File src/doc.c — part of check-in [03979823d1] at 2018-08-29 11:04:19 on branch trunk — Try to start a new write transaction before updating the VCACHE table. This will hopefully prevent occasional "database is locked" errors when browsing the documentation. (user: drh size: 37336) [more...]
| ︙ | |||
465 466 467 468 469 470 471 472 473 474 475 476 477 478 | 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 | + + + + |
** Look for a file named zName in the check-in with RID=vid. Load the content
** of that file into pContent and return the RID for the file. Or return 0
** if the file is not found or could not be loaded.
*/
int doc_load_content(int vid, const char *zName, Blob *pContent){
int writable = db_is_writeable("repository");
int rid; /* The RID of the file being loaded */
if( writable ){
db_end_transaction(0);
db_begin_write();
}
if( !db_table_exists("repository", "vcache") || !writable ){
db_multi_exec(
"CREATE %s TABLE IF NOT EXISTS vcache(\n"
" vid INTEGER, -- check-in ID\n"
" fname TEXT, -- filename\n"
" rid INTEGER, -- artifact ID\n"
" PRIMARY KEY(vid,fname)\n"
|
| ︙ |