Trying to figure out the difference between commit and sync