]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/: fix hobject_t construction
authorSamuel Just <samuel.just@dreamhost.com>
Mon, 11 Jul 2011 20:22:48 +0000 (13:22 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Tue, 30 Aug 2011 00:43:05 +0000 (17:43 -0700)
commit5e927ebe0b7e3ee6925db58c175c125d0ff03b3e
treea90af9bf0d133a0c3f80267188a638198c134726
parenta09c49134c8849eb0b6bc4d7ed7c32a3d95b3568
osd/: fix hobject_t construction

sobject_t requires only an object_t and a snapid_t.  hobject_t also
requires the hash which should be used for the object.  In most cases,
the osd must fill this in using the op message.  In cases where the hash
used does not matter (as in the metadata collection), the explicit
hobject_t(const sobject_t &) constructor supplies a hash.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/Ager.cc
src/osd/OSD.cc
src/osd/OSD.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.h
src/streamtest.cc
src/test_trans.cc