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

Do compaction in the calling thread instead of interrupting the eviction thread

    • Type: Icon: Task Task
    • Resolution: Done
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Michael, this branch has the obvious set of changes to do compaction in the calling thread instead of interrupting the eviction thread.

      There's nothing tricky here, but there's also nothing to prevent a checkpoint thread and a compaction thread from running at the same time.

      I don't think a checkpoint thread in WT_SYNC_LEAF mode will collide with compaction; both threads of control are walking the cache, acquiring hazard pointers, that should be safe.

      A checkpoint thread in WT_SYNC_INTERNAL mode is a little scarier. I think it's safe, but I'd appreciate it if you'd consider it?

      Thanks.

      michaelcahill

            Assignee:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: