]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/ProtocolV2: catch correct bad_alloc exception
authorIlya Dryomov <idryomov@gmail.com>
Tue, 4 May 2021 13:50:05 +0000 (15:50 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 May 2021 20:17:07 +0000 (22:17 +0200)
commit67bb6cf524975ea54d539c5b10ba83fa496a1ced
treea41454221b238e8aeee5645842f457f50e0ff48c
parentaa31ddf0e70b3b8ef8012e09cb3158f3db4dea1b
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>
src/msg/async/ProtocolV2.cc