]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: catch correct bad_alloc exception 41249/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:11:58 +0000 (12:11 +0200)
commit61b17af8179f902a1ca798ab5b0e8923e1e01a3c
treeb3e22d1f7dab8f5c408ce34fcb08a5c45f746b97
parent846ac007840aa8e01a45343bb8f76c1ae6e9f578
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