From 67fa0ec5279a75954b566024ec7a79343ecce800 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Thu, 16 Apr 2009 06:16:42 +0000 Subject: [PATCH] SOLR-1076 followup -- Fix bug with resolving batchSize git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@765481 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/solr/handler/dataimport/JdbcDataSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java b/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java index 68aaf1a2b27..2c1a790bd4a 100644 --- a/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java +++ b/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java @@ -62,7 +62,7 @@ public class JdbcDataSource extends String bsz = initProps.getProperty("batchSize"); if (bsz != null) { - bsz = (String) context.getVariableResolver().resolve(bsz); + bsz = (String) context.getVariableResolver().replaceTokens(bsz); try { batchSize = Integer.parseInt(bsz); if (batchSize == -1)