Fossil SCM

Add the backoffice-nodelay setting as a temporary measure to aid in debugging the unseemly delays currently being experienced in the UI.

drh 2018-07-31 14:22 forum-v2
Commit 0efaa98247a9c89c6cb41159a43121957b6b21f1ff827a5580977bba3975b77c
1 file changed +1 -3
--- src/backoffice.c
+++ src/backoffice.c
@@ -78,18 +78,16 @@
7878
** otherwise taking a long time to complete. Set this when a user-visible
7979
** process might need to wait for backoffice to complete.
8080
*/
8181
static int backofficeNoDelay = 0;
8282
83
-
8483
/*
8584
** Disable the backoffice
8685
*/
8786
void backoffice_no_delay(void){
8887
backofficeNoDelay = 1;
8988
}
90
-
9189
9290
/*
9391
** Parse a unsigned 64-bit integer from a string. Return a pointer
9492
** to the character of z[] that occurs after the integer.
9593
*/
@@ -264,11 +262,11 @@
264262
getpid());
265263
}
266264
backoffice_work();
267265
break;
268266
}
269
- if( backofficeNoDelay ){
267
+ if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){
270268
/* If the no-delay flag is set, exit immediately rather than queuing
271269
** up. Assume that some future request will come along and handle any
272270
** necessary backoffice work. */
273271
db_end_transaction(0);
274272
break;
275273
--- 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

Keyboard Shortcuts

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