summaryrefslogtreecommitdiffstats
path: root/src/streamtest.cc
diff options
context:
space:
mode:
authorSamuel Just <samuel.just@dreamhost.com>2011-07-11 22:22:48 +0200
committerSamuel Just <samuel.just@dreamhost.com>2011-08-30 02:43:05 +0200
commit5e927ebe0b7e3ee6925db58c175c125d0ff03b3e (patch)
treea90af9bf0d133a0c3f80267188a638198c134726 /src/streamtest.cc
parentdupstore: s/sobject_t/hobject_t (diff)
downloadceph-5e927ebe0b7e3ee6925db58c175c125d0ff03b3e.tar.xz
ceph-5e927ebe0b7e3ee6925db58c175c125d0ff03b3e.zip
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/streamtest.cc')
-rw-r--r--src/streamtest.cc2
1 files changed, 1 insertions, 1 deletions
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;