]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: change omap data encoding in object_copy_data_t
authorSage Weil <sage@redhat.com>
Wed, 17 Dec 2014 00:11:50 +0000 (16:11 -0800)
committerSage Weil <sage@redhat.com>
Sat, 20 Dec 2014 15:30:06 +0000 (07:30 -0800)
commit1646d17026345f8cfb36a6d11a8fe29500733576
treefbe9ad60c0a137c7bbd4cdeaceb5c2e523173278
parent925f5727932be842b324675877b8d2db818d8c9c
osd: change omap data encoding in object_copy_data_t

Pass the omap data in the struct as an opaque (encoded) bufferlist.  This
avoids a decode into an STL map, simplifying the crc calculation.  The
win isn't huge (yet) because we still turn it into a map to pass it down
to the ObjectStore method, but that too will change in time.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.cc
src/osd/osd_types.h
src/osdc/Objecter.h
src/test/encoding/types.h