commit
d91a0fb1f1
@ -288,7 +288,8 @@ class ErrorCode():
|
||||
"the actual memory.",
|
||||
'GAUSS_50501': "[GAUSS-50501] : Shared_buffers must be less than "
|
||||
"shmmax. Please check it.",
|
||||
'GAUSS_50502': "[GAUSS-50502] : Failed to obtain %s information."
|
||||
'GAUSS_50502': "[GAUSS-50502] : Failed to obtain %s information.",
|
||||
'GAUSS_50503': "[GAUSS-50503] : %s, program exists abnormally."
|
||||
}
|
||||
|
||||
###########################################################################
|
||||
|
@ -1359,8 +1359,6 @@ class PreinstallImpl:
|
||||
if found_enabledss:
|
||||
with open(source_file, "w") as file:
|
||||
file.writelines(file_lines)
|
||||
else:
|
||||
return
|
||||
|
||||
def checkRepeat(self):
|
||||
"""
|
||||
|
@ -455,8 +455,6 @@ class UninstallImpl:
|
||||
|
||||
if self.mpprcFile and os.path.isfile(self.mpprcFile):
|
||||
source_file = self.mpprcFile
|
||||
else:
|
||||
source_file = os.path.join("/etc", "profile")
|
||||
|
||||
if is_dsshome and not is_enabledssset:
|
||||
with open(source_file, 'a') as file:
|
||||
|
@ -1995,8 +1995,11 @@ def CheckMemInfo():
|
||||
input : NA
|
||||
output : NA
|
||||
"""
|
||||
memdata = collectMemInfo()
|
||||
swapdata = collectSwapInfo()
|
||||
try:
|
||||
memdata = collectMemInfo()
|
||||
swapdata = collectSwapInfo()
|
||||
except SystemExit as e:
|
||||
raise Exception(ErrorCode.GAUSS_505["GAUSS_50503"] % e)
|
||||
if (swapdata.swapvalue > memdata.memvalue):
|
||||
g_logger.log("SwapMemory %s TotalMemory %s" % (swapdata.swapvalue,
|
||||
memdata.memvalue))
|
||||
|
Loading…
x
Reference in New Issue
Block a user