From 7b1c144f21c3ccfe2dfd4342e3d5461b35320b8f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 14 Feb 2012 11:53:05 -0800 Subject: [PATCH] test_filestore_idempotent: fix test to create initial object Filestore now properly fails to clone a non-existent object, which means we should create one. Fixes: #2062 Signed-off-by: Sage Weil --- src/test/test_filestore_idempotent.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/test_filestore_idempotent.cc b/src/test/test_filestore_idempotent.cc index a4aafa7da66d3..ad546da0bef6b 100644 --- a/src/test/test_filestore_idempotent.cc +++ b/src/test/test_filestore_idempotent.cc @@ -80,6 +80,12 @@ int main(int argc, const char **argv) ObjectStore::Transaction ft; ft.create_collection(coll); + { + uint64_t x = 0; + bufferlist bl; + ::encode(x, bl); + ft.write(coll, oid, 0, bl.length(), bl); + } fs->apply_transaction(ft); uint64_t size = 4096; -- 2.39.5