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