Fix Issue #112, WAL compact failed