Skip to content

Commit

Permalink
MDEV-13564: Temporarily restore a call to work around a bug
Browse files Browse the repository at this point in the history
srv_start(): Restore the call to buf_pool_invalidate() that
was removed in commit 09af00c.
It turns out that the call is necessary to work around a bug
that should be fixed in MDEV-19229.
  • Loading branch information
dr-m committed Apr 15, 2019
1 parent c2a2e72 commit e4c5551
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions storage/innobase/srv/srv0start.cc
Expand Up @@ -1837,6 +1837,14 @@ dberr_t srv_start(bool create_new_db)
return(srv_init_abort(err));
}
} else {
/* Work around the bug that we were performing a dirty read of
at least the TRX_SYS page into the buffer pool above, without
reading or applying any redo logs.
MDEV-19229 FIXME: Remove the dirty reads and this call.
Add an assertion that the buffer pool is empty. */
buf_pool_invalidate();

/* We always try to do a recovery, even if the database had
been shut down normally: this is the normal startup path */

Expand Down

0 comments on commit e4c5551

Please sign in to comment.