We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2855edf commit 6fe2aaeCopy full SHA for 6fe2aae
storage/innobase/os/os0thread.cc
@@ -143,7 +143,13 @@ os_thread_create_func(
143
pthread_attr_t attr;
144
145
#ifndef UNIV_HPUX10
146
- pthread_attr_init(&attr);
+ ret = pthread_attr_init(&attr);
147
+ if (UNIV_UNLIKELY(ret)) {
148
+ fprintf(stderr,
149
+ "InnoDB: Error: pthread_attr_init() returned %d\n",
150
+ ret);
151
+ exit(1);
152
+ }
153
#endif
154
155
#ifdef UNIV_AIX
@@ -171,7 +177,11 @@ os_thread_create_func(
171
177
#else
172
178
ret = pthread_create(&pthread, &attr, func, arg);
173
179
174
- ut_a(ret == 0);
180
181
182
+ "InnoDB: Error: pthread_create() returned %d\n", ret);
183
184
175
185
176
186
187
pthread_attr_destroy(&attr);
0 commit comments