if no metadata in gateway, as if we waited

This commit is contained in:
kimchy 2010-04-07 13:23:15 +03:00
parent bcb46a1747
commit 445db1e559
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class GatewayService extends AbstractLifecycleComponent<GatewayService> i
}
if (metaData == null) {
logger.debug("No state read from gateway");
return false;
return true;
}
final MetaData fMetaData = metaData;
final CountDownLatch latch = new CountDownLatch(fMetaData.indices().size());