Fossil SCM

Run the backoffice processing after every webpage. Fix a memory error in one of the backoffice error messages.

drh 2018-07-19 15:43 trunk
Commit 0fdca8c78f3ca874bd2d7ad26e5b01769fa394864dd1c59884be4a1ff4d24b2b
2 files changed +1 -1 +1 -4
--- src/backoffice.c
+++ src/backoffice.c
@@ -189,11 +189,11 @@
189189
190190
if( g.db==0 ){
191191
fossil_panic("database not open for backoffice processing");
192192
}
193193
if( db_transaction_nesting_depth()!=0 ){
194
- fossil_panic("transaction %z not closed prior to backoffice processing",
194
+ fossil_panic("transaction %s not closed prior to backoffice processing",
195195
db_transaction_start_point());
196196
}
197197
idSelf = backofficeProcessId();
198198
while(1){
199199
tmNow = time(0);
200200
--- src/backoffice.c
+++ src/backoffice.c
@@ -189,11 +189,11 @@
189
190 if( g.db==0 ){
191 fossil_panic("database not open for backoffice processing");
192 }
193 if( db_transaction_nesting_depth()!=0 ){
194 fossil_panic("transaction %z not closed prior to backoffice processing",
195 db_transaction_start_point());
196 }
197 idSelf = backofficeProcessId();
198 while(1){
199 tmNow = time(0);
200
--- src/backoffice.c
+++ src/backoffice.c
@@ -189,11 +189,11 @@
189
190 if( g.db==0 ){
191 fossil_panic("database not open for backoffice processing");
192 }
193 if( db_transaction_nesting_depth()!=0 ){
194 fossil_panic("transaction %s not closed prior to backoffice processing",
195 db_transaction_start_point());
196 }
197 idSelf = backofficeProcessId();
198 while(1){
199 tmNow = time(0);
200
+1 -4
--- src/cgi.c
+++ src/cgi.c
@@ -343,14 +343,11 @@
343343
CGIDEBUG(("DONE\n"));
344344
345345
/* After the webpage has been sent, do any useful background
346346
** processing.
347347
*/
348
- if( g.db!=0 && db_repository_has_changed() ){
349
- if( g.fAnyTrace ) fprintf(stderr, "-- repository changes have occurred\n");
350
- backoffice_run();
351
- }
348
+ backoffice_run();
352349
}
353350
354351
/*
355352
** Do a redirect request to the URL given in the argument.
356353
**
357354
--- src/cgi.c
+++ src/cgi.c
@@ -343,14 +343,11 @@
343 CGIDEBUG(("DONE\n"));
344
345 /* After the webpage has been sent, do any useful background
346 ** processing.
347 */
348 if( g.db!=0 && db_repository_has_changed() ){
349 if( g.fAnyTrace ) fprintf(stderr, "-- repository changes have occurred\n");
350 backoffice_run();
351 }
352 }
353
354 /*
355 ** Do a redirect request to the URL given in the argument.
356 **
357
--- src/cgi.c
+++ src/cgi.c
@@ -343,14 +343,11 @@
343 CGIDEBUG(("DONE\n"));
344
345 /* After the webpage has been sent, do any useful background
346 ** processing.
347 */
348 backoffice_run();
 
 
 
349 }
350
351 /*
352 ** Do a redirect request to the URL given in the argument.
353 **
354

Keyboard Shortcuts

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