diff options
author | Samuel Just <samuel.just@dreamhost.com> | 2011-07-11 13:22:48 -0700 |
---|---|---|
committer | Samuel Just <samuel.just@dreamhost.com> | 2011-08-29 17:43:05 -0700 |
commit | 5e927ebe0b7e3ee6925db58c175c125d0ff03b3e (patch) | |
tree | a90af9bf0d133a0c3f80267188a638198c134726 /src/test_trans.cc | |
parent | a09c49134c8849eb0b6bc4d7ed7c32a3d95b3568 (diff) | |
download | ceph-5e927ebe0b7e3ee6925db58c175c125d0ff03b3e.tar.gz |
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>
Diffstat (limited to 'src/test_trans.cc')
-rw-r--r-- | src/test_trans.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_trans.cc b/src/test_trans.cc index f36f6d44d7d..248bb943bba 100644 --- a/src/test_trans.cc +++ b/src/test_trans.cc @@ -63,7 +63,7 @@ int main(int argc, const char **argv) char f[30]; snprintf(f, sizeof(f), "foo%d\n", i); sobject_t soid(f, CEPH_NOSNAP); - t.write(coll_t(), soid, 0, bl.length(), bl); + t.write(coll_t(), hobject_t(soid), 0, bl.length(), bl); } dout(0) << "starting thread" << dendl; |