Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Do not attempt to run backoffice if the repository is read-only. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: | 4f15d34f4b05f76db1db3a72da0500b3 |
User & Date: | drh 2018-11-10 13:49:25 |
Context
2018-11-10
| ||
14:17 | Do not run backoffice if the "--in" option is used on the "fossil http" command. check-in: afb1e5f6cf user: drh tags: trunk | |
13:49 | Do not attempt to run backoffice if the repository is read-only. check-in: 4f15d34f4b user: drh tags: trunk | |
2018-11-09
| ||
19:18 | Merged login-on-post branch to trunk check-in: c0e384cf60 user: wyoung tags: trunk | |
Changes
Changes to src/backoffice.c.
429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
Lease x; sqlite3_uint64 tmNow; sqlite3_uint64 idSelf; int lastWarning = 0; int warningDelay = 30; static int once = 0; backoffice_error_check_one(&once); idSelf = backofficeProcessId(); while(1){ tmNow = time(0); db_begin_write(); backofficeReadLease(&x); if( x.tmNext>=tmNow |
> |
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 |
Lease x;
sqlite3_uint64 tmNow;
sqlite3_uint64 idSelf;
int lastWarning = 0;
int warningDelay = 30;
static int once = 0;
if( sqlite3_db_readonly(g.db, 0) ) return;
backoffice_error_check_one(&once);
idSelf = backofficeProcessId();
while(1){
tmNow = time(0);
db_begin_write();
backofficeReadLease(&x);
if( x.tmNext>=tmNow
|