Skip to content

Commit

Permalink
Merge pull request #7092 from kylinstorage/cleanup_PGLog
Browse files Browse the repository at this point in the history
osd: PGLog: clean up read_log

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
liewegas committed Jan 11, 2016
2 parents 762df3e + dfc5b94 commit 43e35f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/osd/PGLog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -903,12 +903,8 @@ void PGLog::read_log(ObjectStore *store, coll_t pg_coll,
::decode(divergent_priors, bp);
dout(20) << "read_log " << divergent_priors.size() << " divergent_priors" << dendl;
} else if (p->key() == "can_rollback_to") {
bufferlist bl = p->value();
bufferlist::iterator bp = bl.begin();
::decode(log.can_rollback_to, bp);
} else if (p->key() == "rollback_info_trimmed_to") {
bufferlist bl = p->value();
bufferlist::iterator bp = bl.begin();
::decode(log.rollback_info_trimmed_to, bp);
} else {
pg_log_entry_t e;
Expand Down

0 comments on commit 43e35f1

Please sign in to comment.