TEST_P(StoreTest, TryMoveRename) {
ObjectStore::Sequencer osr("test");
coll_t cid;
- ghobject_t hoid(hobject_t("test_hint", "", CEPH_NOSNAP, 0, 0, ""));
- ghobject_t hoid2(hobject_t("test_hint2", "", CEPH_NOSNAP, 0, 0, ""));
+ ghobject_t hoid(hobject_t("test_hint", "", CEPH_NOSNAP, 0, -1, ""));
+ ghobject_t hoid2(hobject_t("test_hint2", "", CEPH_NOSNAP, 0, -1, ""));
int r;
{
ObjectStore::Transaction t;
ASSERT_EQ(r, 0);
}
struct stat st;
- ASSERT_EQ(store->stat(cid, hoid, &st), -2);
+ ASSERT_EQ(store->stat(cid, hoid, &st), -ENOENT);
ASSERT_EQ(store->stat(cid, hoid2, &st), 0);
}