0001-Prevent-infinite-loop.patch
src/bufpool.c | ||
---|---|---|
224 | 224 | |
225 | 225 |
while ( get_total_mem() + len >= on_disk_threshold ) { |
226 | 226 |
evicted = evict_from_memory(); |
227 |
if ( evicted == bp ) |
|
227 |
if ( evicted == NULL || evicted == bp )
|
|
228 | 228 |
break; |
229 | 229 |
} |
230 | 230 | |
231 |
- |