bool retry_errors;
bool no_replies;
bool unfinished;
+ bool background;
void (*callback)(struct client_dict_cmd *cmd,
const char *line, const char *error);
/* more lines needed for this command */
return 1;
}
- diff = timeval_diff_msecs(&ioloop_timeval, &cmds[0]->start_time);
+ diff = cmds[0]->background ? 0 :
+ timeval_diff_msecs(&ioloop_timeval, &cmds[0]->start_time);
if (diff >= DICT_CLIENT_REQUEST_WARN_TIMEOUT_MSECS) {
i_warning("read(%s): dict lookup took %u.%03u seconds: %s",
dict->conn.conn.name, diff/1000, diff % 1000,
struct client_dict_iter_result *result;
const char *key = NULL, *value = NULL;
+ if (ctx->deinit)
+ cmd->background = TRUE;
+
if (error != NULL) {
/* failed */
} else switch (*line) {
} else {
cmd->api_callback.commit = commit_sync_callback;
cmd->api_callback.context = &ret;
+ if (async)
+ cmd->background = TRUE;
}
if (client_dict_cmd_send(dict, &cmd, NULL)) {
if (!async)