Branch: refs/heads/master
  Home:   https://github.com/mailru/tarantool
  Commit: f766adbe93fa53b98655f9c3165554bb934a4e96
      
https://github.com/mailru/tarantool/commit/f766adbe93fa53b98655f9c3165554bb934a4e96
  Author: Konstantin Osipov <[email protected]>
  Date:   2012-05-25 (Fri, 25 May 2012)

  Changed paths:
    M mod/box/box.m
    M src/log_io.m

  Log Message:
  -----------
  Fix a regression introduced by the yesterday's cleanup.

Fix a regression introduced by the yesterday's cleanup:

recover_wal() can return 0, -1, or 1:
0 - ok, eof read
-1 - error reading wal
1 - can't read eof marker from wal.

recover_remaining_wals() looks at this, and when doing final recovery
deletes wal which don't have eof marker (return value from recover_wal()
== 1).

Yesterday I mistakenly merged 0 and 1 return values into one.
Revert this part of the yesterday's patch.

On the same token, log_io_cursor_next() can't throw an exception,
ever. Take this into account and simplify code.

recover_remaining_wals() continues to stay a mess.



_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to