Fossil

Check-in [0fdca8c7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Run the backoffice processing after every webpage. Fix a memory error in one of the backoffice error messages.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0fdca8c78f3ca874bd2d7ad26e5b01769fa394864dd1c59884be4a1ff4d24b2b
User & Date: drh 2018-07-19 15:43:08.890
Context
2018-07-19
15:52
Backoffice only runs for successful webpage that have the database open. Add "refresh" and "Show All" buttons on the /errorlog page. ... (check-in: aa17077e user: drh tags: trunk)
15:43
Run the backoffice processing after every webpage. Fix a memory error in one of the backoffice error messages. ... (check-in: 0fdca8c7 user: drh tags: trunk)
15:35
The configuration loader automatically creates the subscriber table if necessary. This fixes the "fossil clone" command for privileged users. ... (check-in: 06586ef7 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/backoffice.c.
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
  sqlite3_uint64 idSelf;
  int lastWarning = 0;

  if( g.db==0 ){
    fossil_panic("database not open for backoffice processing");
  }
  if( db_transaction_nesting_depth()!=0 ){
    fossil_panic("transaction %z not closed prior to backoffice processing",
                 db_transaction_start_point());
  }
  idSelf = backofficeProcessId();
  while(1){
    tmNow = time(0);
    db_begin_write();
    backofficeReadLease(&x);







|







187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
  sqlite3_uint64 idSelf;
  int lastWarning = 0;

  if( g.db==0 ){
    fossil_panic("database not open for backoffice processing");
  }
  if( db_transaction_nesting_depth()!=0 ){
    fossil_panic("transaction %s not closed prior to backoffice processing",
                 db_transaction_start_point());
  }
  idSelf = backofficeProcessId();
  while(1){
    tmNow = time(0);
    db_begin_write();
    backofficeReadLease(&x);
Changes to src/cgi.c.
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
  }
  fflush(g.httpOut);
  CGIDEBUG(("DONE\n"));

  /* After the webpage has been sent, do any useful background
  ** processing.
  */
  if( g.db!=0 && db_repository_has_changed() ){
    if( g.fAnyTrace ) fprintf(stderr, "-- repository changes have occurred\n");
    backoffice_run();
  }
}

/*
** Do a redirect request to the URL given in the argument.
**
** The URL must be relative to the base of the fossil server.
*/







<
<
|
<







341
342
343
344
345
346
347


348

349
350
351
352
353
354
355
  }
  fflush(g.httpOut);
  CGIDEBUG(("DONE\n"));

  /* After the webpage has been sent, do any useful background
  ** processing.
  */


  backoffice_run();

}

/*
** Do a redirect request to the URL given in the argument.
**
** The URL must be relative to the base of the fossil server.
*/