]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: clean up src_oid, src_obc map key calculation
authorSage Weil <sage@newdream.net>
Sat, 7 Jan 2012 01:18:01 +0000 (17:18 -0800)
committerSage Weil <sage@newdream.net>
Sat, 7 Jan 2012 01:18:01 +0000 (17:18 -0800)
commita774d5002132cffb7b408e7de3d75ee841301fbf
tree6109346d43cb1cf2552ea137ce7b1791bd1b80c2
parent66f382540d7fef4e80a5a67c6fb37ce969dd00f3
osd: clean up src_oid, src_obc map key calculation

Be consistent about how we generate the src_oid and src_oloc, so that we
feed good value into find_object_context and use a consistent key for
the src_obc map<>.  This fixes a crash in do_osd_ops() due to a missing
src_obc key when the get_src_oloc() normalizes the key in do_op() but not
in do_osd_ops().

Also use a nicer name.

Fixes: #1897
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/ReplicatedPG.cc