• Marc Alff's avatar
    Bug#16414644 ASSERTION FAILED: SIZE == PFS_ALLOCATED_MEMORY · 99f83c66
    Marc Alff authored
    Before this fix, the command
      SHOW ENGINE PERFORMANCE_SCHEMA STATUS
    could report wrong amount of memory allocated,
    when the amount of memory used exceeds 4GB.
    
    The problem is that size computations are not done using size_t,
    so that overflows do occur, truncating the results.
    
    This fix compute memory sizes properly with size_t.
    
    Tested manually.
    
    No test script provided, as the script would need to allocate too much 
    memory for the test.
    99f83c66
pfs_global.cc 1.95 KB