This does not need to change once set, so adapt constructor to
allow it to be const.
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
will_write(sinfo.get_k_plus_m()),
hinfo(hinfo),
shinfo(shinfo),
- orig_size(orig_size) // On-disk object sizes are rounded up to the next page.
+ orig_size(orig_size), // On-disk object sizes are rounded up to the next page.
+ projected_size(soi?soi->size:(oi?oi->size:0))
{
extent_set unaligned_ro_writes;
-
- projected_size = oi ? oi->size : 0;
-
- if (soi) {
- projected_size = soi->size;
- }
-
hobject_t source;
invalidates_cache = op.has_source(&source) || op.is_delete();
const ECUtil::HashInfoRef hinfo;
const ECUtil::HashInfoRef shinfo;
const uint64_t orig_size;
- uint64_t projected_size;
+ const uint64_t projected_size;
bool invalidates_cache;
bool do_parity_delta_write = false;
} else {
os << ", ";
}
- os << p;
+ os << "{" << p << "}";
}
os << "]";
}