Return iif lock could not be obtained.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@708511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-10-28 10:27:08 +00:00
parent bbde265bfe
commit f12ed3dee6
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ public class DataImporter {
}
void runCmd(RequestParams reqParams, SolrWriter sw, Map<String, String> variables) {
if (importLock.tryLock())
if (!importLock.tryLock())
return;
try {
String command = reqParams.command;