]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: fix iterator corruption in cancel_copy_ops() 663/head
authorSage Weil <sage@inktank.com>
Mon, 30 Sep 2013 23:33:22 +0000 (16:33 -0700)
committerSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 15:56:12 +0000 (08:56 -0700)
commit75b94ba2953169cd7cd458df5a0f6b844504d1f9
tree9171088737b2cf4205cfe53cb63536fedef2bdcd
parent56711370c3a7dfce683f73f1f4b7b5ccd66cbeb5
osd/ReplicatedPG: fix iterator corruption in cancel_copy_ops()

The cancel_copy() method removes the entry from copy_ops.  Move the
iterator forward before calling.

Fixes segfault when thrashing osds with a copy-from workload.

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