Commit 5eb64550 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Fix HTTP connection leak by database index creation

parent 06dd2225
......@@ -318,7 +318,8 @@ public class MangoCouchDbConnector extends StdCouchDbConnector {
} catch (final JsonProcessingException e) {
throw new DbAccessException(e);
}
restTemplate.postUncached(dbURI.append("_index").toString(), queryString);
final HttpResponse response = restTemplate.postUncached(dbURI.append("_index").toString(), queryString);
response.releaseConnection();
}
public void createJsonIndex(final String name, final List<MangoQuery.Sort> fields) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment