Report failed operation name in cluster_client

rel-0.5
Vitaliy Filippov 2021-03-27 00:43:28 +03:00
parent 8f8b90be7a
commit e1355cbc74
1 changed files with 2 additions and 2 deletions

View File

@ -711,8 +711,8 @@ void cluster_client_t::handle_op_part(cluster_op_part_t *part)
{ {
// Operation failed, retry // Operation failed, retry
printf( printf(
"Operation failed on OSD %lu: retval=%ld (expected %d), dropping connection\n", "%s operation failed on OSD %lu: retval=%ld (expected %d), dropping connection\n",
part->osd_num, part->op.reply.hdr.retval, expected osd_op_names[part->op.req.hdr.opcode], part->osd_num, part->op.reply.hdr.retval, expected
); );
msgr.stop_client(part->op.peer_fd); msgr.stop_client(part->op.peer_fd);
if (part->op.reply.hdr.retval == -EPIPE) if (part->op.reply.hdr.retval == -EPIPE)