Update after review

This commit is contained in:
David Pilato 2016-03-23 17:32:51 +01:00
parent e907b7c11e
commit 4b1ae331f0
1 changed files with 1 additions and 1 deletions

View File

@ -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 + ").");
}