~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to ovsdb/file.c

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
598
598
    }
599
599
    file->n_transactions++;
600
600
 
601
 
    /* If it has been at least COMPACT_MIN_MSEC millseconds since the last time
602
 
     * we compacted (or at least COMPACT_RETRY_MSEC since the last time we
 
601
    /* If it has been at least COMPACT_MIN_MSEC ms since the last time we
 
602
     * compacted (or at least COMPACT_RETRY_MSEC ms since the last time we
603
603
     * tried), and if there are at least 100 transactions in the database, and
604
604
     * if the database is at least 10 MB, then compact the database. */
605
605
    if (time_msec() >= file->next_compact