Skip to content

Commit 7391926

Browse files
committed
support: fix failure to push blocks back to the buffer pool central cache
1 parent fd74043 commit 7391926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/srsran/support/memory_pool/fixed_size_memory_block_pool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class fixed_size_memory_block_pool
219219
pool.incomplete_batch.push(local_cache.back().try_pop());
220220
if (pool.incomplete_batch.size() >= block_batch_size) {
221221
// The incomplete batch is now complete and can be pushed to the central cache.
222-
report_error_if_not(pool.central_mem_cache.try_enqueue(pool.incomplete_batch),
222+
report_error_if_not(pool.central_mem_cache.enqueue(pool.incomplete_batch),
223223
"Failed to push blocks to central cache");
224224
pool.incomplete_batch.clear();
225225
}
@@ -228,7 +228,7 @@ class fixed_size_memory_block_pool
228228
local_cache.pop_back();
229229
continue;
230230
}
231-
report_error_if_not(pool.central_mem_cache.try_enqueue(local_cache.back()),
231+
report_error_if_not(pool.central_mem_cache.enqueue(local_cache.back()),
232232
"Failed to push blocks back to central cache");
233233
local_cache.pop_back();
234234
}

0 commit comments

Comments
 (0)