mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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:
parent
c7698a0b70
commit
c982a143fc
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue