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:
parent
6457fb5c39
commit
3cdf441da1
@ -52,6 +52,11 @@ char *server_id_str(TALLOC_CTX *mem_ctx, const struct server_id *id)
|
|||||||
"%llu.%u",
|
"%llu.%u",
|
||||||
(unsigned long long)id->pid,
|
(unsigned long long)id->pid,
|
||||||
(unsigned)id->task_id);
|
(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 {
|
} else {
|
||||||
return talloc_asprintf(mem_ctx,
|
return talloc_asprintf(mem_ctx,
|
||||||
"%u:%llu.%u",
|
"%u:%llu.%u",
|
||||||
|
Loading…
Reference in New Issue
Block a user