Revision c6286c03

View differences:

src/sql/LogDB.cc
531 531
        return 0;
532 532
    }
533 533

  
534
    unsigned int delete_index = last_index - log_retention;
534
    unsigned int delete_index = last_applied - log_retention;
535 535

  
536 536
    // keep the last "log_retention" records as well as those not applied to DB
537 537
    oss << "DELETE FROM logdb WHERE timestamp > 0 AND log_index >= 0 "

Also available in: Unified diff