PG: set log.backlog to false on corrupt log

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
This commit is contained in:
Samuel Just 2011-09-22 09:46:12 -07:00
parent 0afda37812
commit 5503d45017

View File

@ -2469,6 +2469,7 @@ void PG::read_state(ObjectStore *store)
// reset info
info.log_tail = info.last_update;
info.log_backlog = false;
log.backlog = false;
// Move the corrupt log to a new place and create a new zero-length log entry.
ObjectStore::Transaction t;