in the all & smart mode, write oplog first then sync the db