What do you think of this piece of C code? void foo(long v) { unsigned long u; unsigned sign; if (v < 0) { u = -v; sign = 1; } else { u = v; sign = 0; } … Seems pretty simple, right? Then what do you think of this output from MySQL:… Continue reading Integer overflow
Tag: database
Even faster group commit!
I found time to continue my previous work on group commit for the binary log in MariaDB. In current code, a (group) commit to InnoDB does not less than three fsync() calls: Once during InnoDB prepare, to make sure we can recover the transaction in InnoDB if we crash after writing it to the binlog.… Continue reading Even faster group commit!