]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Worker commands: Rename "id" event field to "command_id"
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 5 Aug 2020 19:48:40 +0000 (22:48 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 27 Aug 2020 06:20:18 +0000 (06:20 +0000)
Now that auth_request events are inherited from worker command events, the
"id" field was also inherited. This is rather confusing and might conflict
with other IDs in the future, so better to rename it already.

src/auth/auth-worker-client.c

index c0f9ef3d573517cd044391d322440c1b9e3bb4f4..38d0ba46fca16021319d8072ac612a5634c80f68 100644 (file)
@@ -762,7 +762,7 @@ auth_worker_client_input_args(struct connection *conn, const char *const *args)
        cmd->event = event_create(client->conn.event);
        event_add_category(cmd->event, &event_category_auth);
        event_add_str(cmd->event, "command", args[1]);
-       event_add_int(cmd->event, "id", id);
+       event_add_int(cmd->event, "command_id", id);
        event_set_append_log_prefix(cmd->event, t_strdup_printf("auth-worker<%u>: ", id));
        client->cmd_start = ioloop_time;
        client->refcount++;