]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: fix filter lifecycle in do_osd_ops
authorSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 14:49:26 +0000 (10:49 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 19:58:26 +0000 (15:58 -0400)
commitc2fc74d18a5e65b4a5b30d760550935a174613e8
tree943fce22c869695829fc64d36e4cb6e01504eb4c
parent62214832a488d2a9e7f1e32aebf3f3182c2d109f
osd/ReplicatedPG: fix filter lifecycle in do_osd_ops

If we take an error path in [N]PGLS (objects_list_partial error
or bad handle) and FAILOK is set we may exec a second filter op
that reallocates a new filter without freeing the old one.

Simplify by freeing only at the end of the function or when a new
filter is (re)allocated.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc