Add Master_Server_Id value to returned show slave status command
This commit is contained in:
@ -899,7 +899,12 @@ int len, actual_len, col_len, seqno, ncols, i;
|
||||
|
||||
*ptr++ = 0;
|
||||
|
||||
*ptr++ = 0;
|
||||
/* Master_Server_Id */
|
||||
sprintf(column, "%d", router->masterid);
|
||||
col_len = strlen(column);
|
||||
*ptr++ = col_len; // Length of result string
|
||||
strncpy((char *)ptr, column, col_len); // Result string
|
||||
ptr += col_len;
|
||||
|
||||
sprintf(column, "%s", router->master_uuid ?
|
||||
router->master_uuid : router->uuid);
|
||||
|
Reference in New Issue
Block a user