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)
::encode(omap_digest, bl);
::encode(expected_object_size, bl);
::encode(expected_write_size, bl);
+ ::encode(alloc_hint_flags, bl);
ENCODE_FINISH(bl);
}
if (struct_v >= 16) {
::decode(expected_object_size, bl);
::decode(expected_write_size, bl);
+ ::decode(alloc_hint_flags, bl);
} else {
expected_object_size = 0;
expected_write_size = 0;
+ alloc_hint_flags = 0;
}
DECODE_FINISH(bl);
}