summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-09-08 00:21:13 +0300
committerunknown <heikki@hundin.mysql.fi>2002-09-08 00:21:13 +0300
commitfebc603b6f68abcc5464acf1993f18e751a12cc1 (patch)
treea2c48432eac7d0d1478b5080d30a7f4dda475da5 /innobase
parentd9cdfc0519144771638218b14848c2735b736db6 (diff)
downloadmariadb-git-febc603b6f68abcc5464acf1993f18e751a12cc1.tar.gz
os0sync.c:
Add diagnostics to track why a semaphore creation failed on Windows ME innobase/os/os0sync.c: Add diagnostics to track why a semaphore creation failed on Windows ME
Diffstat (limited to 'innobase')
-rw-r--r--innobase/os/os0sync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c
index c1345de0d55..14677ede20f 100644
--- a/innobase/os/os0sync.c
+++ b/innobase/os/os0sync.c
@@ -49,6 +49,12 @@ os_event_create(
TRUE, /* Manual reset */
FALSE, /* Initial state nonsignaled */
name);
+ if (!event) {
+ fprintf(stderr,
+"InnoDB: Could not create a Windows event semaphore; Windows error %lu\n",
+ (ulint)GetLastError());
+ }
+
ut_a(event);
return(event);