From 4b1ae331f04e1cf47871b81f6821d7ac1d4fb811 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Wed, 23 Mar 2016 17:32:51 +0100 Subject: [PATCH] Update after review --- .../java/org/elasticsearch/repositories/s3/S3Repository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Repository.java b/plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Repository.java index 6742233cf78..a09d57ebc93 100644 --- a/plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Repository.java +++ b/plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Repository.java @@ -266,7 +266,7 @@ public class S3Repository extends BlobStoreRepository { this.compress = getValue(repositorySettings, Repository.COMPRESS_SETTING, Repositories.COMPRESS_SETTING); // We make sure that chunkSize is bigger or equal than/to bufferSize - if (this.chunkSize.getMb() < bufferSize.getMb()) { + if (this.chunkSize.getBytes() < bufferSize.getBytes()) { throw new RepositoryException(name.name(), Repository.CHUNK_SIZE_SETTING.getKey() + " (" + this.chunkSize + ") can't be lower than " + Repository.BUFFER_SIZE_SETTING.getKey() + " (" + bufferSize + ")."); }