Add Master_Server_Id value to returned show slave status command

This commit is contained in:
Mark Riddoch
2015-02-10 08:36:31 +00:00
parent faca6b6d76
commit eafdd43592

View File

@ -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);