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
This commit is contained in:
Shalin Shekhar Mangar 2009-04-16 06:16:42 +00:00
parent 6610c0489d
commit 67fa0ec527
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class JdbcDataSource extends
String bsz = initProps.getProperty("batchSize"); String bsz = initProps.getProperty("batchSize");
if (bsz != null) { if (bsz != null) {
bsz = (String) context.getVariableResolver().resolve(bsz); bsz = (String) context.getVariableResolver().replaceTokens(bsz);
try { try {
batchSize = Integer.parseInt(bsz); batchSize = Integer.parseInt(bsz);
if (batchSize == -1) if (batchSize == -1)