Commit data processing function