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

win_handle_read should always call GetLastError on error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • WT2.8.0
    • WT2.9.0
    • None
    • None
    • Platforms 13 (04/22/16)

    Description

      Check nr in the code below is POSIX read api semantics but is wrong for Windows. This causes the WIndows code to lose error information if read fails.

                      if (!ReadFile(fh->filehandle, addr, chunk, &nr, &overlapped))
                              WT_RET_MSG(session,
                                 nr == 0 ? WT_ERROR : __wt_getlasterror(),
                                  "%s: handle-read: ReadFile: failed to read %lu "
                                  "bytes at offset %" PRIuMAX,
      

      Attachments

        Issue Links

          Activity

            People

              mark.benvenuto@mongodb.com Mark Benvenuto
              mark.benvenuto@mongodb.com Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: