1. 03 Mar, 2008 2 commits
    • kaa@kaamos.(none)'s avatar
      Merge kaamos.(none):/data/src/opt/bug31781/my50 · 92ba2cef
      kaa@kaamos.(none) authored
      into  kaamos.(none):/data/src/opt/bug31781/my51
      92ba2cef
    • kaa@kaamos.(none)'s avatar
      Fix for bug #31781: multi-table UPDATE with temp-pool enabled fails · bd53f960
      kaa@kaamos.(none) authored
                          with errno 17
      
      my_create() did not perform any checks for the case when a file is
      successfully created by a call to open(), but the call to
      my_register_filename() later fails because the number of open files
      has exceeded the my_open_files limit. This can happen on platforms 
      which do not have getrlimit(), and hence we do not know the real limit
      for open files. In such a case an error was returned to a caller
      although the file has actually been created. Since callers assume
      my_create() to return an error only when it failed to create a file,
      they did not perform any cleanups, leaving an 'orphaned' file on the
      file system.
      
      Fixed by adding a check for the above case to my_create() and ensuring
      the newly created file is deleted before returning an error.
      
      Creating a deterministic test case in the test suite is impossible,
      because the exact steps required to reproduce the above situation
      depend on the platform and/or environment (OS per-user limits, queries
      executed by previous tests, startup parameters). The patch was
      manually tested on Windows using examples posted in the bug report.
      bd53f960
  2. 27 Feb, 2008 2 commits
  3. 25 Feb, 2008 3 commits
  4. 14 Feb, 2008 4 commits
  5. 13 Feb, 2008 7 commits
  6. 12 Feb, 2008 6 commits
  7. 11 Feb, 2008 2 commits
  8. 10 Feb, 2008 9 commits
  9. 08 Feb, 2008 3 commits
  10. 07 Feb, 2008 2 commits