review duplicated completefile() call
Merge pull request #46 from ErikFang/master

review duplicated completefile() call
Merge pull request #22 from dianping/master

sync