om代码同步

This commit is contained in:
gyt0221
2021-02-05 14:44:00 +08:00
parent b53952aa62
commit f2d28fca22
8 changed files with 44 additions and 22 deletions

View File

@ -3979,7 +3979,7 @@ class DefaultValue():
else:
gucDict[guc] = "2047GB"
continue
elif (guc == "shared_buffers"):
elif guc == "shared_buffers":
if (int(dynamicParaList[0]) < 256):
ratioNum = 1
elif (int(dynamicParaList[0]) < 512):
@ -3997,7 +3997,7 @@ class DefaultValue():
raise Exception(ErrorCode.GAUSS_516["GAUSS_51632"] %
"calculate: %s" % gucDict[guc])
gucDict[guc] = int(gucDict[guc] * 1024)
if (gucDict[guc] >= 1024):
if gucDict[guc] >= 1024:
gucDict[guc] = "1GB"
else:
gucDict[guc] = str(gucDict[guc]) + "MB"