Skip to content

Commit

Permalink
Merge pull request ceph#36889 from idryomov/wip-relax-preauth-asserts
Browse files Browse the repository at this point in the history
msg/async/ProtocolV2: allow rxbuf/txbuf get bigger in testing

Reviewed-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
idryomov authored Sep 1, 2020
2 parents cdd333a + 94953dd commit 42766b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/msg/async/ProtocolV2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ CtPtr ProtocolV2::read(CONTINUATION_RXBPTR_TYPE<ProtocolV2> &next,
if (unlikely(pre_auth.enabled) && r >= 0) {
pre_auth.rxbuf.append(*next.node);
ceph_assert(!cct->_conf->ms_die_on_bug ||
pre_auth.rxbuf.length() < 1000000);
pre_auth.rxbuf.length() < 10000000);
}
next.r = r;
run_continuation(next);
Expand All @@ -759,7 +759,7 @@ CtPtr ProtocolV2::read(CONTINUATION_RXBPTR_TYPE<ProtocolV2> &next,
if (unlikely(pre_auth.enabled) && r == 0) {
pre_auth.rxbuf.append(*next.node);
ceph_assert(!cct->_conf->ms_die_on_bug ||
pre_auth.rxbuf.length() < 1000000);
pre_auth.rxbuf.length() < 10000000);
}
next.r = r;
return &next;
Expand Down Expand Up @@ -791,7 +791,7 @@ CtPtr ProtocolV2::write(const std::string &desc,
if (unlikely(pre_auth.enabled)) {
pre_auth.txbuf.append(buffer);
ceph_assert(!cct->_conf->ms_die_on_bug ||
pre_auth.txbuf.length() < 1000000);
pre_auth.txbuf.length() < 10000000);
}

ssize_t r =
Expand Down

0 comments on commit 42766b3

Please sign in to comment.