mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: TABLE::init()
unused freshly initialized record should be trashed with TRASH_ALLOC, not TRASH_FREE
This commit is contained in:
@@ -4454,7 +4454,7 @@ void TABLE::init(THD *thd, TABLE_LIST *tl)
|
||||
DBUG_ASSERT(key_read == 0);
|
||||
|
||||
/* mark the record[0] uninitialized */
|
||||
TRASH(record[0], s->reclength);
|
||||
TRASH_ALLOC(record[0], s->reclength);
|
||||
|
||||
/*
|
||||
Initialize the null marker bits, to ensure that if we are doing a read
|
||||
|
Reference in New Issue
Block a user