Browse Source

Fixed compiler error with framesize=16384 in InnoDB log0sync.cc

When compiling with debug and valgrind on Ubuntu 22.04 with gcc 11.4.0,
the used framsize was 16400 bytes because of the code:
completion_callback callbacks[1000];

Reducing the array to 950 fixes the issue
bb-10.6-bumpversion
Michael Widenius 3 months ago
parent
commit
49febfad21
  1. 2
      storage/innobase/log/log0sync.cc

2
storage/innobase/log/log0sync.cc

@ -280,7 +280,7 @@ group_commit_lock::lock_return_code group_commit_lock::acquire(value_type num, c
group_commit_lock::value_type group_commit_lock::release(value_type num)
{
completion_callback callbacks[1000];
completion_callback callbacks[950]; // 1000 fails with framesize 16384
size_t callback_count = 0;
value_type ret = 0;
std::unique_lock<std::mutex> lk(m_mtx);

Loading…
Cancel
Save