Fossil SCM
Run the backoffice processing after every webpage. Fix a memory error in one of the backoffice error messages.
Commit
0fdca8c78f3ca874bd2d7ad26e5b01769fa394864dd1c59884be4a1ff4d24b2b
Parent
06586ef70f36afb…
2 files changed
+1
-1
+1
-4
+1
-1
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -189,11 +189,11 @@ | ||
| 189 | 189 | |
| 190 | 190 | if( g.db==0 ){ |
| 191 | 191 | fossil_panic("database not open for backoffice processing"); |
| 192 | 192 | } |
| 193 | 193 | 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", | |
| 195 | 195 | db_transaction_start_point()); |
| 196 | 196 | } |
| 197 | 197 | idSelf = backofficeProcessId(); |
| 198 | 198 | while(1){ |
| 199 | 199 | tmNow = time(0); |
| 200 | 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 %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 @@ | ||
| 343 | 343 | CGIDEBUG(("DONE\n")); |
| 344 | 344 | |
| 345 | 345 | /* After the webpage has been sent, do any useful background |
| 346 | 346 | ** processing. |
| 347 | 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 | - } | |
| 348 | + backoffice_run(); | |
| 352 | 349 | } |
| 353 | 350 | |
| 354 | 351 | /* |
| 355 | 352 | ** Do a redirect request to the URL given in the argument. |
| 356 | 353 | ** |
| 357 | 354 |
| --- 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 |