Commit 79ff2b03 authored by unknown's avatar unknown

malloc() failure is unlikely().


storage/maria/trnman.c:
  malloc() failure is unlikely
parent fb818dd7
...@@ -110,7 +110,7 @@ int trnman_init() ...@@ -110,7 +110,7 @@ int trnman_init()
my_atomic_rwlock_init(&LOCK_pool); my_atomic_rwlock_init(&LOCK_pool);
short_trid_to_active_trn= (TRN **)my_malloc(SHORT_TRID_MAX*sizeof(TRN*), short_trid_to_active_trn= (TRN **)my_malloc(SHORT_TRID_MAX*sizeof(TRN*),
MYF(MY_WME|MY_ZEROFILL)); MYF(MY_WME|MY_ZEROFILL));
if (!short_trid_to_active_trn) if (unlikely(!short_trid_to_active_trn))
return 1; return 1;
short_trid_to_active_trn--; /* min short_trid is 1 */ short_trid_to_active_trn--; /* min short_trid is 1 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment