Below is the list of changes that have just been committed into a local
4.0 repository of heikki. When heikki does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2065 05/03/03 17:20:05 heikki@stripped +1 -0
os0file.c:
AIX 5.1 after security patch ML7 seems to contain a bug that instead of EEXIST it sets errno to 0 if a file creation fails because the file already exists. Work around that bug by interpreting errno 0 in AIX as EEXIST.
innobase/os/os0file.c
1.82 05/03/03 17:19:52 heikki@stripped +9 -0
AIX 5.1 after security patch ML7 seems to contain a bug that instead of EEXIST it sets errno to 0 if a file creation fails because the file already exists. Work around that bug by interpreting errno 0 in AIX as EEXIST.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: heikki
# Host: hundin.mysql.fi
# Root: /home/heikki/mysql-4.0
--- 1.81/innobase/os/os0file.c Wed Jan 12 15:24:41 2005
+++ 1.82/innobase/os/os0file.c Thu Mar 3 17:19:52 2005
@@ -291,6 +291,15 @@
return(OS_FILE_NOT_FOUND);
} else if (err == EEXIST) {
return(OS_FILE_ALREADY_EXISTS);
+#ifdef UNIV_AIX
+ } else if (err == 0) {
+ fprintf(stderr,
+"InnoDB: errno is 0. Since AIX 5.1 after security patch ML7 erroneously\n"
+"InnoDB: sets errno to 0 when it should be EEXIST, we assume that the real\n"
+"InnoDB: error here was EEXIST.\n");
+
+ return(OS_FILE_ALREADY_EXISTS);
+#endif
} else {
return(100 + err);
}
| Thread |
|---|
| • bk commit into 4.0 tree (heikki:1.2065) | Heikki Tuuri | 3 Mar |