]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG::record_write_error: don't leak orig_reply on cancel 12450/head
authorSamuel Just <sjust@redhat.com>
Wed, 7 Dec 2016 22:29:44 +0000 (14:29 -0800)
committerSamuel Just <sjust@redhat.com>
Wed, 7 Dec 2016 22:29:49 +0000 (14:29 -0800)
commitfe456b80f49a2badbc80335f172c4759104db2fd
tree71e22fd40b3be72c6c669bab40bde560ab1b9be3
parent7b1293e70db51f620210332bde1f83ade15bd9d3
ReplicatedPG::record_write_error: don't leak orig_reply on cancel

The submit_log_entries machinery depends on the destructor for the
functor cleaning up after itself to handle cancelation.  I could have
introduced a local intrusive_ptr and captured that instead, but this is
slightly less magic.

Fixes: http://tracker.ceph.com/issues/18180
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc