merged mysql master/slave into one thing
bug: did not update file when index entry exists