File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public class SessionPoolOptions {
3535 private static final int DEFAULT_MAX_SESSIONS = 400 ;
3636 private static final int DEFAULT_MIN_SESSIONS = 100 ;
3737 private static final int DEFAULT_INC_STEP = 25 ;
38- private static final int EXPERIMENTAL_HOST_MIN_SESSIONS = 0 ;
38+ private static final int EXPERIMENTAL_HOST_REGULAR_SESSIONS = 0 ;
3939 private static final ActionOnExhaustion DEFAULT_ACTION = ActionOnExhaustion .BLOCK ;
4040 private final int minSessions ;
4141 private final int maxSessions ;
@@ -93,9 +93,10 @@ private SessionPoolOptions(Builder builder) {
9393 // maxSessions value is less than the default for minSessions.
9494 this .minSessions =
9595 builder .isExperimentalHost
96- ? EXPERIMENTAL_HOST_MIN_SESSIONS
96+ ? EXPERIMENTAL_HOST_REGULAR_SESSIONS
9797 : Math .min (builder .minSessions , builder .maxSessions );
98- this .maxSessions = builder .maxSessions ;
98+ this .maxSessions =
99+ builder .isExperimentalHost ? EXPERIMENTAL_HOST_REGULAR_SESSIONS : builder .maxSessions ;
99100 this .incStep = builder .incStep ;
100101 this .maxIdleSessions = builder .maxIdleSessions ;
101102 this .writeSessionsFraction = builder .writeSessionsFraction ;
You can’t perform that action at this time.
0 commit comments