!797 升级适配93XXX版本号

Merge pull request !797 from chenxiaobin/support93xxx
This commit is contained in:
opengauss_bot 2024-08-13 06:06:19 +00:00 committed by Gitee
commit 4b3fa4bc81
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -606,21 +606,11 @@ class UpgradeImpl:
else:
upgradeAction = const.ACTION_SMALL_UPGRADE
else:
if int(float(newClusterNumber)) > int(float(oldClusterNumber)):
raise Exception(ErrorCode.GAUSS_529["GAUSS_52904"]
+ "This cluster version is "
"not supported upgrade.")
elif ((float(newClusterNumber) - int(float(newClusterNumber)))
> (float(oldClusterNumber) -
int(float(oldClusterNumber)))):
if self.context.is_inplace_upgrade:
upgradeAction = const.ACTION_INPLACE_UPGRADE
self.isLargeInplaceUpgrade = True
else:
upgradeAction = const.ACTION_LARGE_UPGRADE
if self.context.is_inplace_upgrade:
upgradeAction = const.ACTION_INPLACE_UPGRADE
self.isLargeInplaceUpgrade = True
else:
raise Exception(ErrorCode.GAUSS_516["GAUSS_51629"]
% newClusterNumber)
upgradeAction = const.ACTION_LARGE_UPGRADE
self.context.logger.debug("The matched upgrade strategy is: %s."
% upgradeAction)
return upgradeAction