Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: 记录同步出错的包,并在下次同步时合并到列表里 #111

Open
sorrycc opened this issue Jan 30, 2015 · 5 comments
Open

Comments

@sorrycc
Copy link
Member

sorrycc commented Jan 30, 2015

No description provided.

@afc163
Copy link
Member

afc163 commented Jan 30, 2015

同步出错的,下次同步应该本来就会同步吧。

难道是先标志了同步成功?

@sorrycc
Copy link
Member Author

sorrycc commented Jan 30, 2015

同步开始时的包列表是根据上次同步时间来获取的,没有判断状态。

@afc163
Copy link
Member

afc163 commented Jan 30, 2015

改成上次同步成功的时间就行了吧,报错了就不设。

@sorrycc
Copy link
Member Author

sorrycc commented Jan 30, 2015

同步一个包出错就停止等待下一个同步循环? 这样效率会不高啊。万一有个包一直出错就完了。

我的想法是出错时不退出整体的同步进程,只是记录,下一次同步时把前一次同步出错的包加回去。

@afc163
Copy link
Member

afc163 commented Jan 30, 2015

我不是这个意思。

默认记录同步成功的包的 last_sync_time,出错不记录,下次同步时自然会得到前面没同步成功的包。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants