1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib/util: let server_id_str() skip the task_id if 0 in the cluster case too

server_id_from_string() already handles that case.

metze
This commit is contained in:
Stefan Metzmacher 2012-08-17 12:50:09 +02:00
parent 6457fb5c39
commit 3cdf441da1

View File

@ -52,6 +52,11 @@ char *server_id_str(TALLOC_CTX *mem_ctx, const struct server_id *id)
"%llu.%u",
(unsigned long long)id->pid,
(unsigned)id->task_id);
} else if (id->task_id == 0) {
return talloc_asprintf(mem_ctx,
"%u:%llu",
(unsigned)id->vnn,
(unsigned long long)id->pid);
} else {
return talloc_asprintf(mem_ctx,
"%u:%llu.%u",