Fossil SCM
Add the backoffice-nodelay setting as a temporary measure to aid in debugging the unseemly delays currently being experienced in the UI.
Commit
0efaa98247a9c89c6cb41159a43121957b6b21f1ff827a5580977bba3975b77c
Parent
fa8ef2577772123…
1 file changed
+1
-3
+1
-3
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -78,18 +78,16 @@ | ||
| 78 | 78 | ** otherwise taking a long time to complete. Set this when a user-visible |
| 79 | 79 | ** process might need to wait for backoffice to complete. |
| 80 | 80 | */ |
| 81 | 81 | static int backofficeNoDelay = 0; |
| 82 | 82 | |
| 83 | - | |
| 84 | 83 | /* |
| 85 | 84 | ** Disable the backoffice |
| 86 | 85 | */ |
| 87 | 86 | void backoffice_no_delay(void){ |
| 88 | 87 | backofficeNoDelay = 1; |
| 89 | 88 | } |
| 90 | - | |
| 91 | 89 | |
| 92 | 90 | /* |
| 93 | 91 | ** Parse a unsigned 64-bit integer from a string. Return a pointer |
| 94 | 92 | ** to the character of z[] that occurs after the integer. |
| 95 | 93 | */ |
| @@ -264,11 +262,11 @@ | ||
| 264 | 262 | getpid()); |
| 265 | 263 | } |
| 266 | 264 | backoffice_work(); |
| 267 | 265 | break; |
| 268 | 266 | } |
| 269 | - if( backofficeNoDelay ){ | |
| 267 | + if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){ | |
| 270 | 268 | /* If the no-delay flag is set, exit immediately rather than queuing |
| 271 | 269 | ** up. Assume that some future request will come along and handle any |
| 272 | 270 | ** necessary backoffice work. */ |
| 273 | 271 | db_end_transaction(0); |
| 274 | 272 | break; |
| 275 | 273 |
| --- src/backoffice.c | |
| +++ src/backoffice.c | |
| @@ -78,18 +78,16 @@ | |
| 78 | ** otherwise taking a long time to complete. Set this when a user-visible |
| 79 | ** process might need to wait for backoffice to complete. |
| 80 | */ |
| 81 | static int backofficeNoDelay = 0; |
| 82 | |
| 83 | |
| 84 | /* |
| 85 | ** Disable the backoffice |
| 86 | */ |
| 87 | void backoffice_no_delay(void){ |
| 88 | backofficeNoDelay = 1; |
| 89 | } |
| 90 | |
| 91 | |
| 92 | /* |
| 93 | ** Parse a unsigned 64-bit integer from a string. Return a pointer |
| 94 | ** to the character of z[] that occurs after the integer. |
| 95 | */ |
| @@ -264,11 +262,11 @@ | |
| 264 | getpid()); |
| 265 | } |
| 266 | backoffice_work(); |
| 267 | break; |
| 268 | } |
| 269 | if( backofficeNoDelay ){ |
| 270 | /* If the no-delay flag is set, exit immediately rather than queuing |
| 271 | ** up. Assume that some future request will come along and handle any |
| 272 | ** necessary backoffice work. */ |
| 273 | db_end_transaction(0); |
| 274 | break; |
| 275 |
| --- src/backoffice.c | |
| +++ src/backoffice.c | |
| @@ -78,18 +78,16 @@ | |
| 78 | ** otherwise taking a long time to complete. Set this when a user-visible |
| 79 | ** process might need to wait for backoffice to complete. |
| 80 | */ |
| 81 | static int backofficeNoDelay = 0; |
| 82 | |
| 83 | /* |
| 84 | ** Disable the backoffice |
| 85 | */ |
| 86 | void backoffice_no_delay(void){ |
| 87 | backofficeNoDelay = 1; |
| 88 | } |
| 89 | |
| 90 | /* |
| 91 | ** Parse a unsigned 64-bit integer from a string. Return a pointer |
| 92 | ** to the character of z[] that occurs after the integer. |
| 93 | */ |
| @@ -264,11 +262,11 @@ | |
| 262 | getpid()); |
| 263 | } |
| 264 | backoffice_work(); |
| 265 | break; |
| 266 | } |
| 267 | if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){ |
| 268 | /* If the no-delay flag is set, exit immediately rather than queuing |
| 269 | ** up. Assume that some future request will come along and handle any |
| 270 | ** necessary backoffice work. */ |
| 271 | db_end_transaction(0); |
| 272 | break; |
| 273 |