Flush on log size instead of transaction count