Commit bb2fe80
committed
fix: throw exception for invalid memory size in releaseToQuery
Change releaseToQuery to throw IllegalArgumentException when sizeInBytes <= 0,
instead of silently returning. This makes it consistent with allocateMemoryBlock
and helps detect programming errors early.1 parent 05c3b4c commit bb2fe80
File tree
1 file changed
+4
-2
lines changed- iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/memory
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments