Fossil SCM

Do not try to run backoffice if not connected to a valid repository.

drh 2018-08-23 16:02 trunk
Commit 3f5b25493212ff39f848879233b23a66d4ed118027284def9072e86d653bf274
1 file changed +1
--- src/backoffice.c
+++ src/backoffice.c
@@ -381,10 +381,11 @@
381381
sqlite3_uint64 tmNow;
382382
383383
if( backofficeDb ) return;
384384
if( g.zRepositoryName==0 ) return;
385385
if( g.db==0 ) return;
386
+ if( !db_table_exists("repository","config") ) return;
386387
tmNow = time(0);
387388
backofficeReadLease(&x);
388389
if( x.tmNext>=tmNow && backofficeProcessExists(x.idNext) ){
389390
/* Another backoffice process is already queued up to run. This
390391
** process does not need to do any backoffice work. */
391392
--- src/backoffice.c
+++ src/backoffice.c
@@ -381,10 +381,11 @@
381 sqlite3_uint64 tmNow;
382
383 if( backofficeDb ) return;
384 if( g.zRepositoryName==0 ) return;
385 if( g.db==0 ) return;
 
386 tmNow = time(0);
387 backofficeReadLease(&x);
388 if( x.tmNext>=tmNow && backofficeProcessExists(x.idNext) ){
389 /* Another backoffice process is already queued up to run. This
390 ** process does not need to do any backoffice work. */
391
--- src/backoffice.c
+++ src/backoffice.c
@@ -381,10 +381,11 @@
381 sqlite3_uint64 tmNow;
382
383 if( backofficeDb ) return;
384 if( g.zRepositoryName==0 ) return;
385 if( g.db==0 ) return;
386 if( !db_table_exists("repository","config") ) return;
387 tmNow = time(0);
388 backofficeReadLease(&x);
389 if( x.tmNext>=tmNow && backofficeProcessExists(x.idNext) ){
390 /* Another backoffice process is already queued up to run. This
391 ** process does not need to do any backoffice work. */
392

Keyboard Shortcuts

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