diff --git a/storage/innobase/trx/trx0rec.cc b/storage/innobase/trx/trx0rec.cc index d6885b9a1a5..3260b1e34c8 100644 --- a/storage/innobase/trx/trx0rec.cc +++ b/storage/innobase/trx/trx0rec.cc @@ -2582,6 +2582,9 @@ bool trx_undo_prev_version_build( if (missing_extern) { /* treat as a fresh insert, not to cause assertion error at the caller. */ + if (update != nullptr) { + update->reset(); + } return true; } }