From 5e927ebe0b7e3ee6925db58c175c125d0ff03b3e Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 11 Jul 2011 13:22:48 -0700 Subject: 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 --- src/streamtest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/streamtest.cc') diff --git a/src/streamtest.cc b/src/streamtest.cc index 9736281f1a0..65d7248e7ca 100644 --- a/src/streamtest.cc +++ b/src/streamtest.cc @@ -145,7 +145,7 @@ int main(int argc, const char **argv) set_start(pos, ceph_clock_now(g_ceph_context)); ObjectStore::Transaction *t = new ObjectStore::Transaction; - t->write(coll_t(), poid, pos, bytes, bl); + t->write(coll_t(), hobject_t(poid), pos, bytes, bl); fs->queue_transaction(NULL, t, new C_Ack(pos), new C_Commit(pos)); pos += bytes; -- cgit v1.2.3