ret = l.lock_exclusive(&io_ctx, reshard_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshard::add failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshard::add failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
ret = l.lock_shared(&io_ctx, reshard_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshard::list failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshard::list failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
ret = l.lock_shared(&io_ctx, reshard_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
ret = l.lock_shared(&io_ctx, reshard_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshardLog::get failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshardLog::get failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
ret = l.lock_exclusive(&io_ctx, reshard_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshardLog::remove failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshardLog::remove failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
ret = l.lock_exclusive(&io_ctx, bucket_instance_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
ret = l.lock_exclusive(&io_ctx, bucket_instance_oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
return 0;
}
if (ret < 0)
return ret;
}
-
int RGWReshard::lock_bucket_index_shared(const string& oid)
{
int ret = get_io_ctx(io_ctx);
ret = instance_lock.lock_shared(&io_ctx, oid);
if (ret == -EBUSY) {
- dout(0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
+ ldout(cct, 0) << "RGWReshardLog::add failed to acquire lock on " << reshard_oid << dendl;
return 0;
}