Skip to content

Commit

Permalink
fts-solr: Add rawlog support
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Feb 27, 2019
1 parent b4741a3 commit 2b4c173
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/plugins/fts-solr/fts-solr-plugin.c
Expand Up @@ -35,6 +35,8 @@ fts_solr_plugin_init_settings(struct mail_user *user,
} else if (str_begins(*tmp, "default_ns=")) {
set->default_ns_prefix =
p_strdup(user->pool, *tmp + 11);
} else if (str_begins(*tmp, "rawlog_dir=")) {
set->rawlog_dir = p_strdup(user->pool, *tmp + 11);
} else {
i_error("fts_solr: Invalid setting: %s", *tmp);
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/fts-solr/fts-solr-plugin.h
Expand Up @@ -11,7 +11,7 @@
MODULE_CONTEXT_REQUIRE(obj, fts_solr_user_module)

struct fts_solr_settings {
const char *url, *default_ns_prefix;
const char *url, *default_ns_prefix, *rawlog_dir;
bool use_libfts;
bool debug;
};
Expand Down
1 change: 1 addition & 0 deletions src/plugins/fts-solr/solr-connection.c
Expand Up @@ -155,6 +155,7 @@ int solr_connection_init(const struct fts_solr_settings *solr_set,
http_set.request_timeout_msecs = 60*1000;
http_set.ssl = ssl_client_set;
http_set.debug = solr_set->debug;
http_set.rawlog_dir = solr_set->rawlog_dir;
solr_http_client = http_client_init(&http_set);
}

Expand Down

0 comments on commit 2b4c173

Please sign in to comment.