{
CephContext *cct = ictx->cct;
if (size == ictx->header.image_size) {
- ldout(cct, 2) << "no change in size (" << size << " -> " << ictx->header.image_size << ")" << dendl;
+ ldout(cct, 2) << "no change in size (" << ictx->header.image_size << " -> " << size << ")" << dendl;
return 0;
}
if (size > ictx->header.image_size) {
- ldout(cct, 2) << "expanding image " << size << " -> " << ictx->header.image_size << " objects" << dendl;
+ ldout(cct, 2) << "expanding image " << ictx->header.image_size << " -> " << size << " objects" << dendl;
ictx->header.image_size = size;
} else {
- ldout(cct, 2) << "shrinking image " << size << " -> " << ictx->header.image_size << " objects" << dendl;
+ ldout(cct, 2) << "shrinking image " << ictx->header.image_size << " -> " << size << " objects" << dendl;
trim_image(ictx->data_ctx, ictx->header, size, prog_ctx);
ictx->header.image_size = size;
}