]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Rename mail_storage_service_input.parent_event to event_parent
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 4 Feb 2021 00:00:28 +0000 (02:00 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 23 Mar 2021 07:40:58 +0000 (07:40 +0000)
This makes it more consistent with other settings.

src/imap/main.c
src/lda/main.c
src/lib-storage/mail-storage-service.c
src/lib-storage/mail-storage-service.h
src/lmtp/lmtp-local.c
src/plugins/quota/quota-status.c

index 35ae2de0829106a6d91c019285f7938e2f3eb965..32cce5d6ca3eea3c650bedf20dcb500585036c90 100644 (file)
@@ -273,7 +273,7 @@ int client_create_from_input(const struct mail_storage_service_input *input,
                event_add_int(event, "remote_port", input->remote_port);
 
        service_input = *input;
-       service_input.parent_event = event;
+       service_input.event_parent = event;
        if (mail_storage_service_lookup_next(storage_service, &service_input,
                                             &user, &mail_user, error_r) <= 0) {
                event_unref(&event);
index 4244bec1edbde7a7ee2efe59c00cdbf8c9063945..9a1064b00440defc808734ee54f6a10fa2fc869e 100644 (file)
@@ -540,7 +540,7 @@ int main(int argc, char *argv[])
        service_input.module = "lda";
        service_input.service = "lda";
        service_input.username = user;
-       service_input.parent_event = event;
+       service_input.event_parent = event;
 
        service_flags |= MAIL_STORAGE_SERVICE_FLAG_USE_SYSEXITS;
        storage_service = mail_storage_service_init(master_service, set_roots,
index e3fdd17af76b86256ffc063ec25069f5f39a1196..797cbf6eb8d7174af3d06715055a27253a305ebd 100644 (file)
@@ -1347,7 +1347,7 @@ mail_storage_service_lookup_real(struct mail_storage_service_ctx *ctx,
        /* Create an event that will be used as the default event for logging.
           This event won't be a parent to any other events - mail_user.event
           will be used for that. */
-       user->event = event_create(input->parent_event);
+       user->event = event_create(input->event_parent);
        event_set_forced_debug(user->event,
                               user->service_ctx->debug || (flags & MAIL_STORAGE_SERVICE_FLAG_DEBUG) != 0);
        event_add_fields(user->event, (const struct event_add_field []){
index 042a7bbb444c7b8415a60736a4466533f4b494c9..09d8ff48f03e7c2157a2563d59f308ccf7bee005 100644 (file)
@@ -37,7 +37,7 @@ enum mail_storage_service_flags {
 };
 
 struct mail_storage_service_input {
-       struct event *parent_event;
+       struct event *event_parent;
 
        const char *module;
        const char *service;
index 776b4758c8d221b8298f101ff2876d245f382988..055641efa4dc32a93b56b24d620547a856fdc2d1 100644 (file)
@@ -326,7 +326,7 @@ int lmtp_local_rcpt(struct client *client, struct smtp_server_cmd_ctx *cmd,
        input.forward_fields = lrcpt->forward_fields;
 
        event_add_str(rcpt->event, "session", session_id);
-       input.parent_event = rcpt->event;
+       input.event_parent = rcpt->event;
 
        ret = mail_storage_service_lookup(storage_service, &input,
                                          &service_user, &error);
index 930bb155aa0cd435246ddd183e9d9ce767d4f9e4..e24a032ac0af3da29415b757c38cff53d7e3b60f 100644 (file)
@@ -146,7 +146,7 @@ static void client_handle_request(struct quota_client *client)
        }
 
        i_zero(&input);
-       input.parent_event = client->event;
+       input.event_parent = client->event;
        smtp_address_detail_parse_temp(quota_status_settings->recipient_delimiter,
                                       rcpt, &input.username, &delim,
                                       &detail);