DBZ-1247 Using isNonNegativeInteger instead of isPositiveInteger

This commit is contained in:
jchipmunk 2019-04-23 11:31:52 +03:00 committed by Gunnar Morling
parent 3ca47b1055
commit 2c79d901c5

View File

@ -300,7 +300,7 @@ public static SnapshotMode parse(String value, String defaultValue) {
.withImportance(Importance.MEDIUM)
.withDescription("The maximum number of documents that should be loaded into memory while performing a snapshot")
.withDefault(0)
.withValidation(Field::isPositiveInteger);
.withValidation(Field::isNonNegativeInteger);
protected static final Field TASK_ID = Field.create("mongodb.task.id")
.withDescription("Internal use only")