1
0
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:
Sergei Golubchik
2016-11-23 20:12:28 +01:00
parent 335082ec5e
commit d440319842

View File

@@ -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