Commit d4403198 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: TABLE::init()

unused freshly initialized record should be trashed
with TRASH_ALLOC, not TRASH_FREE
parent 335082ec
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment