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

verify shouldn't write the file

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

      "wt verify" truncates to the size of the last snapshot, and shouldn't.

      The problem is the session code re-opens the file handle after the verify completes, and that is what truncates the file.

      I think this is a bug in the session code: we shouldn't re-open the Btree handle after a "special" operation, that is, verify, salvage or upgrade, we should just discard the reference. It's not that big a deal for salvage or upgrade because they are writing the file anyway, but verify shouldn't write the file.

            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: