Fossil

Diff
Login

Diff

Differences From Artifact [15b0eb0da4]:

To Artifact [9772a0c0e4]:


429
430
431
432
433
434
435

436
437
438
439
440
441
442
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443







+







  Lease x;
  sqlite3_uint64 tmNow;
  sqlite3_uint64 idSelf;
  int lastWarning = 0;
  int warningDelay = 30;
  static int once = 0;

  if( sqlite3_db_readonly(g.db, 0) ) return;
  backoffice_error_check_one(&once);
  idSelf = backofficeProcessId();
  while(1){
    tmNow = time(0);
    db_begin_write();
    backofficeReadLease(&x);
    if( x.tmNext>=tmNow