Another fix of check for required settings in FsRepository

This time with the right setting
This commit is contained in:
Boaz Leskes 2016-01-22 18:01:27 +01:00
parent dc0fb29ad9
commit 30bfde9a2d
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class FsRepository extends BlobStoreRepository {
public FsRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws IOException { public FsRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws IOException {
super(name.getName(), repositorySettings, indexShardRepository); super(name.getName(), repositorySettings, indexShardRepository);
Path locationFile; Path locationFile;
String location = REPOSITORIES_LOCATION_SETTING.get(settings); String location = REPOSITORIES_LOCATION_SETTING.get(repositorySettings.settings());
if (location.isEmpty()) { if (location.isEmpty()) {
logger.warn("the repository location is missing, it should point to a shared file system location that is available on all master and data nodes"); logger.warn("the repository location is missing, it should point to a shared file system location that is available on all master and data nodes");
throw new RepositoryException(name.name(), "missing location"); throw new RepositoryException(name.name(), "missing location");