mirror of https://github.com/apache/activemq.git
Allowing disk limit percentages to be 0
This commit is contained in:
parent
9acee62877
commit
3b658f8e1a
|
@ -96,8 +96,7 @@ public class StoreUsage extends PercentLimitUsage<StoreUsage> {
|
|||
protected void updateLimitBasedOnPercent() {
|
||||
usageLock.writeLock().lock();
|
||||
try {
|
||||
|
||||
if (percentLimit > 0 && store != null) {
|
||||
if (percentLimit >= 0 && store != null) {
|
||||
File dir = StoreUtil.findParentDirectory(store.getDirectory());
|
||||
|
||||
if (dir != null) {
|
||||
|
|
|
@ -76,7 +76,7 @@ public class TempUsage extends PercentLimitUsage<TempUsage> {
|
|||
protected void updateLimitBasedOnPercent() {
|
||||
usageLock.writeLock().lock();
|
||||
try {
|
||||
if (percentLimit > 0 && store != null) {
|
||||
if (percentLimit >= 0 && store != null) {
|
||||
File dir = StoreUtil.findParentDirectory(store.getDirectory());
|
||||
|
||||
if (dir != null) {
|
||||
|
|
Loading…
Reference in New Issue