Signed-off-by: yaoning <yaoning@unitedstack.com>
data.ops++;
}
+ /// Set allocation hint for an object
+ /// make 0 values(expected_object_size, expected_write_size) noops for all implementations
void set_alloc_hint(
coll_t cid,
const ghobject_t &oid,
dout(15) << "set_alloc_hint " << cid << "/" << oid << " object_size " << expected_object_size << " write_size " << expected_write_size << dendl;
FDRef fd;
- int ret;
+ int ret = 0;
+
+ if (expected_object_size == 0 || expected_write_size == 0)
+ goto out;
ret = lfn_open(cid, oid, false, &fd);
if (ret < 0)