Fossil SCM

Previous check-in does not work. Change it so that the backoffice is not even attempted if the database is in read-only mode.

drh 2024-07-29 11:58 trunk
Commit 503354d1cad453c655702c3262b34e8bff564b6f60c7d4dfaba8afa1bd9c5816
1 file changed +1 -1
--- src/backoffice.c
+++ src/backoffice.c
@@ -484,11 +484,11 @@
484484
int lastWarning = 0;
485485
int warningDelay = 30;
486486
static int once = 0;
487487
488488
if( sqlite3_db_readonly(g.db, 0) ) return;
489
- while( db_is_protected(PROTECT_ALL) ) db_protect_pop();
489
+ if( db_is_protected(PROTECT_READONLY) ) return;
490490
g.zPhase = "backoffice";
491491
backoffice_error_check_one(&once);
492492
idSelf = backofficeProcessId();
493493
while(1){
494494
tmNow = time(0);
495495
--- src/backoffice.c
+++ src/backoffice.c
@@ -484,11 +484,11 @@
484 int lastWarning = 0;
485 int warningDelay = 30;
486 static int once = 0;
487
488 if( sqlite3_db_readonly(g.db, 0) ) return;
489 while( db_is_protected(PROTECT_ALL) ) db_protect_pop();
490 g.zPhase = "backoffice";
491 backoffice_error_check_one(&once);
492 idSelf = backofficeProcessId();
493 while(1){
494 tmNow = time(0);
495
--- src/backoffice.c
+++ src/backoffice.c
@@ -484,11 +484,11 @@
484 int lastWarning = 0;
485 int warningDelay = 30;
486 static int once = 0;
487
488 if( sqlite3_db_readonly(g.db, 0) ) return;
489 if( db_is_protected(PROTECT_READONLY) ) return;
490 g.zPhase = "backoffice";
491 backoffice_error_check_one(&once);
492 idSelf = backofficeProcessId();
493 while(1){
494 tmNow = time(0);
495

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button