Skip to content
Permalink
Browse files
PS-4989: Fixing innodb_track_changed_pages debug validation
In debug builds, this setting is allowed to be turned off temporarily after it was
turned on during startup. Howewer memory garbage also caused it to be accidentally
turned on when it was disabled at startup.
  • Loading branch information
dutow authored and dr-m committed Apr 25, 2019
1 parent 979cad2 commit 83d8c38
Showing 1 changed file with 3 additions and 1 deletion.
@@ -19148,8 +19148,10 @@ innodb_track_changed_pages_validate(
return 0;
}

if (intbuf == srv_track_changed_pages)
if (intbuf == srv_track_changed_pages) { // == 0
*reinterpret_cast<ulong*>(save) = srv_track_changed_pages;
return 0;
}

return 1;
}

0 comments on commit 83d8c38

Please sign in to comment.