• unknown's avatar
    MDEV-3861: Assertion in TC_LOG_MMAP. · 6058b654
    unknown authored
    Root cause was that number of entries in commit checkpoint buffer
    was bigger than total available entries in the mmap()'ed score
    file. This causes TC_LOG_MMAP to run out of entries before even
    the first checkpoint is started, which causes a hang.
    
    Fixed by making sure we have fewer entries within one commit
    checkpoint than total available scorefile entries.
    
    Another part of this bug was discovery of severel unrelated bugs
    in TC_LOG_MMAP dating back to 5.1. These were fixed in 5.1 and
    will be merged up (the problem this patch fixes exists only in
    10.0).
    6058b654
log.h 35.5 KB