]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: catch correct bad_alloc exception 41247/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:10:55 +0000 (12:10 +0200)
commit5d60f6b5f41fe243e1b5f965cafed57c39ffcfbd
tree67d8f4bd212a51ff04954cdf2189d03d5d5bf9cb
parent459b4d71333cb357a87db18222e916eb344c3693
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