Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2104

add support for flushing the transaction log.

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Engines

      A possible fix for SERVER-20176 requires some way to flush the logs explicitly.

      geert.bosch tried a WT_SESSION.begin_transaction and WT_SESSION.commit_transaction pair, with commit_transaction configuring sync=on, but that won't work unless there are writes included in the transaction.

      sue.loverso suggests it might be possible to make that work (and it's not unreasonable since the documentation does imply sync=on flushes all log records. (The documentation says "whether to sync the log on every commit by default", without any discussion of a write being required.)

      sue.loverso also suggested WT_SESSION.transaction_sync could be enhanced to provide this functionality, perhaps calling that method without any configuration would flush the log.

      sue.loverso, michael.cahill

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: