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.
This commit is contained in:
Marko Mäkelä 2024-12-16 13:23:13 +02:00
parent c7698a0b70
commit c982a143fc

View file

@ -938,9 +938,7 @@ fil_space_t::fil_space_t(uint32_t id, ulint flags, bool being_imported,
id(id), crypt_data(crypt_data), being_imported(being_imported), flags(flags)
{
UT_LIST_INIT(chain, &fil_node_t::chain);
#ifndef SUX_LOCK_GENERIC
memset((void*) &latch, 0, sizeof latch);
#endif
latch.SRW_LOCK_INIT(fil_space_latch_key);
}