Fossil SCM
Do not try to run backoffice if not connected to a valid repository.
Commit
3f5b25493212ff39f848879233b23a66d4ed118027284def9072e86d653bf274
Parent
bb7c2d91df62d54…
1 file changed
+1
+1
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -381,10 +381,11 @@ | ||
| 381 | 381 | sqlite3_uint64 tmNow; |
| 382 | 382 | |
| 383 | 383 | if( backofficeDb ) return; |
| 384 | 384 | if( g.zRepositoryName==0 ) return; |
| 385 | 385 | if( g.db==0 ) return; |
| 386 | + if( !db_table_exists("repository","config") ) return; | |
| 386 | 387 | tmNow = time(0); |
| 387 | 388 | backofficeReadLease(&x); |
| 388 | 389 | if( x.tmNext>=tmNow && backofficeProcessExists(x.idNext) ){ |
| 389 | 390 | /* Another backoffice process is already queued up to run. This |
| 390 | 391 | ** process does not need to do any backoffice work. */ |
| 391 | 392 |
| --- 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 |