]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix bad Message* defer in C_SendMap and send_map_on_destruct
authorSage Weil <sage@redhat.com>
Fri, 25 Jul 2014 16:20:20 +0000 (09:20 -0700)
committerSage Weil <sage@redhat.com>
Fri, 25 Jul 2014 16:20:50 +0000 (09:20 -0700)
commitd1dfb9b60789c378e745f1ee0e715d9307aaac6d
tree238fa5de64f88f4eae1b049721aebb8465dfcc1a
parent63c1711a9e237c14d137131f56751970ad1567b1
osd: fix bad Message* defer in C_SendMap and send_map_on_destruct

We were carrying a bare Message*, which could get freed if the op was
canceled (or possibly completed).  Instead, just stash the entity_name_t,
the only piece we need.  The Connection is properly ref counted so no
worries there.

Fixes: #8926
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc