Who was the holder of the record for most Olympic medals, before being beaten in London in 2012?

Who was the holder of the record for most Olympic medals, before being beaten in London in 2012?