Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (中文) » MobiLink - 服务器管理 » 使用 MobiLink 服务器技术 » 同步技术 » 冲突处理 » 检测冲突

 

通过 upload_new_row_insert 或 upload_old_row_insert 脚本检测冲突

如果为表定义了 upload_new_row_insert 或 upload_old_row_insert 脚本,但未定义 upload_fetch 和 upload_fetch_column_conflict 脚本,MobiLink 服务器会使用被上载更新影响到的行数来确定是否发生冲突。

如果 MobiLink 服务器在冲突时正尝试上载多个行,且受影响的行数少于应用到统一数据库的行数,则服务器会分别上载每个行以重新应用上载更新。但是,如果 MobiLink 服务器正尝试上载单个行且上载更新后受影响的行数为零,则服务器会将更新视作冲突更新。有关上载多个行的详细信息,请参见-s mlsrv12 选项

注意

受影响行的计数并非总是可靠。如果受影响行的计数错误,MobiLink 服务器会触发错误的冲突更新并错误地调用冲突解决脚本。

 另请参见