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 | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:0fdca8c78f3ca874bd2d7ad26e5b01769fa394864dd1c59884be4a1ff4d24b2b
User & Date: drh 2018-07-19 15:43:08
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
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/backoffice.c.

   187    187     sqlite3_uint64 idSelf;
   188    188     int lastWarning = 0;
   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       db_begin_write();
   201    201       backofficeReadLease(&x);

Changes to src/cgi.c.

   341    341     }
   342    342     fflush(g.httpOut);
   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   ** The URL must be relative to the base of the fossil server.
   358    355   */