Skip to content

Commit c982a14

Browse files
committed
MDEV-35494 fixup: Always initialize latch
It turns out that init() always checks in debug builds that some fields of the latch had been filled with zero.
1 parent c7698a0 commit c982a14

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

storage/innobase/fil/fil0fil.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,9 +938,7 @@ fil_space_t::fil_space_t(uint32_t id, ulint flags, bool being_imported,
938938
id(id), crypt_data(crypt_data), being_imported(being_imported), flags(flags)
939939
{
940940
UT_LIST_INIT(chain, &fil_node_t::chain);
941-
#ifndef SUX_LOCK_GENERIC
942941
memset((void*) &latch, 0, sizeof latch);
943-
#endif
944942
latch.SRW_LOCK_INIT(fil_space_latch_key);
945943
}
946944

0 commit comments

Comments
 (0)