Skip to content

Commit 1b7da2c

Browse files
author
pippocao
committed
Disable mmap temporarily, #34
1 parent b2b3811 commit 1b7da2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bq_log/types/ring_buffer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace bq {
3232
bq::util::log_device_console(bq::log_level::warning, "invalid ring_buffer capacity {}, it should not be less than 16 * 64 bytes. it will be set to 16 * 64 automatically", capacity);
3333
capacity = 16 * cache_line_size;
3434
}
35+
serialize_id = 0; //disable mmap temporarily , it is not robust enough.
3536
auto mmap_result = create_memory_map(capacity, serialize_id);
3637
switch (mmap_result) {
3738
case bq::ring_buffer::failed:

0 commit comments

Comments
 (0)