Change config from `mongodb.connection-per-host` to `mongodb.connections-per-host`
Documentation specifies `connections-per-host`.
@@ -19,6 +19,7 @@ import com.google.common.collect.ImmutableList;
import com.mongodb.MongoCredential;
import com.mongodb.ServerAddress;
import io.airlift.configuration.Config;
+import io.airlift.configuration.DefunctConfig;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@@ -30,6 +31,7 @@ import java.util.List;
import static com.google.common.base.Preconditions.checkArgument;
import static com.mongodb.MongoCredential.createCredential;
+@DefunctConfig("mongodb.connection-per-host")
public class MongoClientConfig
{
private static final Splitter SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
@@ -160,7 +162,7 @@ public class MongoClientConfig
return connectionsPerHost;
}
- @Config("mongodb.connection-per-host")
+ @Config("mongodb.connections-per-host")
public MongoClientConfig setConnectionsPerHost(int connectionsPerHost)
{
this.connectionsPerHost = connectionsPerHost;
