Skip to content

Commit a96e9ee

Browse files
committed
fix all bugs
1 parent 879390b commit a96e9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/memory/pool/impl/OperatorMemoryPool.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Object requireMemory(long bytes, MemoryPool requestingPool) {
125125
// use lock to ensure the atomicity of the two-step operation
126126
this.memoryActionLock.lock();
127127
// if free memory is enough, use free memory directly.
128-
if (getFreeBytes() < bytes) {
128+
if (getFreeBytes() >= bytes) {
129129
LOG.debug("[{}] require {} bytes, there is enough free memory {} bytes, will " +
130130
"require memory directly from self's free memory.",
131131
this,

0 commit comments

Comments
 (0)