]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: catch correct bad_alloc exception 41246/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 4 May 2021 13:50:05 +0000 (15:50 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 9 May 2021 10:05:16 +0000 (12:05 +0200)
commitb9dbb83fb9443d6f677262ae37ec40ac186dc271
treef9368be5dd7133e6bd8c7d4a44a0a5a40fd18c74
parent57e2db1e1860ea149cebfb77fc7a1a64d2cc9080
msg/async/ProtocolV2: catch correct bad_alloc exception

We want buffer::bad_alloc, not std::bad_alloc.  Otheriwise, we end
up with a confusing error

  failed decoding of frame header: Bad allocation

from ProtocolV2::run_continuation(), printed after frame header is
successfully decoded.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 67bb6cf524975ea54d539c5b10ba83fa496a1ced)
src/msg/async/ProtocolV2.cc