]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ObjectCacher: fix flush_set when no flushing is needed
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 29 Jan 2013 22:22:15 +0000 (14:22 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 29 Jan 2013 22:35:28 +0000 (14:35 -0800)
commit3bc21143552b35698c9916c67494336de8964d2a
tree8fff5c287a99ccdb735bdd15eb49669f0fdfe5d9
parent59ac4d3534df1564cf71cc9395c2249f6a95042f
ObjectCacher: fix flush_set when no flushing is needed

C_GatherBuilder takes ownership of the Context we pass it. Deleting it
in flush_set after constructing the C_GatherBuilder results in a
double delete.

Fixes: #3946
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
src/osdc/ObjectCacher.cc