On error, it will normally be the caller's responsibility to
release context, which we don't do it here.
Since filer->zero() never returns anything other than 0,
we assert this call to be successful for now.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
ceph::real_clock::now(cct),
0, true, onfinish,
new C_OnFinisher(onsafe, &objecter_finisher));
- if (r < 0)
- goto done;
+ assert(r == 0);
in->mtime = ceph_clock_now(cct);
mark_caps_dirty(in, CEPH_CAP_FILE_WR);