Fixed an issue while checking the major version of servers in schema diff.

This commit is contained in:
Huang Jun 2021-01-18 14:40:07 +05:30 committed by Akshay Joshi
parent d4a3e4d92c
commit a60cfd3cc3

View File

@ -720,8 +720,8 @@ def check_version_compatibility(sid, tid):
'Advanced Server.')
def get_round_val(x):
if x < 10000:
return x if x % 100 == 0 else x + 100 - x % 100
if x < 100000:
return x + 100 - x % 100
else:
return x + 10000 - x % 10000