mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
Merge pull request #21580 from xiexingguo/wip-add-assert
osd/PGLog: assert out on performing overflowed log trimming Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
7003d415db
@ -52,9 +52,10 @@ void PGLog::IndexedLog::trim(
|
||||
{
|
||||
if (complete_to != log.end() &&
|
||||
complete_to->version <= s) {
|
||||
generic_dout(0) << " bad trim to " << s << " when complete_to is "
|
||||
<< complete_to->version
|
||||
<< " on " << *this << dendl;
|
||||
generic_derr << " bad trim to " << s << " when complete_to is "
|
||||
<< complete_to->version
|
||||
<< " on " << *this << dendl;
|
||||
assert(0 == "out of order trim");
|
||||
}
|
||||
|
||||
assert(s <= can_rollback_to);
|
||||
|
Loading…
Reference in New Issue
Block a user