We cannot assume pbl may be deferenced. Per review, move the dout
print into the r < 0 condition--since it's now an error, make it's
trace level 0.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
-
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
io_ctx.locator_set_key(key);
r = io_ctx.aio_operate(oid, c, &op, NULL);
- ldout(cct, 20) << "rados->aio_operate r=" << r << " bl.length=" << pbl->length() << dendl;
- if (r < 0)
- goto done_err;
+ if (r < 0) {
+ ldout(cct, 0) << "rados->aio_operate r=" << r << dendl;
+ goto done_err;
+ }
// Flush data to client if there is any
r = flush_read_list(d);