mirror of
https://github.com/apache/activemq.git
synced 2025-02-22 18:04:46 +00:00
https://issues.apache.org/jira/browse/AMQ-3573 https://issues.apache.org/jira/browse/AMQ-2834 - only validate limits if they are set
This commit is contained in:
parent
e100638244
commit
dc19d28af9
@ -1978,7 +1978,7 @@ public class BrokerService implements Service {
|
||||
maxJournalFileSize = ((JournaledStore) adapter).getJournalMaxFileLength();
|
||||
}
|
||||
|
||||
if (storeLimit < maxJournalFileSize) {
|
||||
if (storeLimit > 0 && storeLimit < maxJournalFileSize) {
|
||||
LOG.error("Store limit is " + storeLimit / (1024 * 1024) +
|
||||
" mb, whilst the max journal file size for the store is: " +
|
||||
maxJournalFileSize / (1024 * 1024) + " mb, " +
|
||||
@ -2011,7 +2011,7 @@ public class BrokerService implements Service {
|
||||
}
|
||||
long storeLimit = usage.getTempUsage().getLimit();
|
||||
|
||||
if (storeLimit < maxJournalFileSize) {
|
||||
if (storeLimit > 0 && storeLimit < maxJournalFileSize) {
|
||||
LOG.error("Temporary Store limit is " + storeLimit / (1024 * 1024) +
|
||||
" mb, whilst the max journal file size for the temporary store is: " +
|
||||
maxJournalFileSize / (1024 * 1024) + " mb, " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user