Fossil: Check-in [4f15d34f4b]

Fossil SCM

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:4f15d34f4b05f76db1db3a72da0500b3f01bbb63570e16030e9aefb4287a352d
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    429     Lease x;
   430    430     sqlite3_uint64 tmNow;
   431    431     sqlite3_uint64 idSelf;
   432    432     int lastWarning = 0;
   433    433     int warningDelay = 30;
   434    434     static int once = 0;
   435    435   
          436  +  if( sqlite3_db_readonly(g.db, 0) ) return;
   436    437     backoffice_error_check_one(&once);
   437    438     idSelf = backofficeProcessId();
   438    439     while(1){
   439    440       tmNow = time(0);
   440    441       db_begin_write();
   441    442       backofficeReadLease(&x);
   442    443       if( x.tmNext>=tmNow