Resolves a 2.1.1 recovery issue.

- Due to a buffer offset error, after recovery the database would end up in
  a dangerous state where it would potentially fail to recover from a
  second crash if there had not been a log rotation or a safe shutdown.