rda-python-dscheck 1.0.7__tar.gz → 1.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/PKG-INFO +1 -1
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/pyproject.toml +1 -1
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck/PgCheck.py +4 -4
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/PKG-INFO +1 -1
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/LICENSE +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/MANIFEST.in +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/README.md +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/setup.cfg +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck/__init__.py +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck/dscheck.py +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck/dscheck.usg +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/SOURCES.txt +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/dependency_links.txt +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/entry_points.txt +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/requires.txt +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/top_level.txt +0 -0
- {rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/tests/test_dscheck.py +0 -0
|
@@ -405,7 +405,7 @@ def check_dscheck_locks(cnd, logact = 0):
|
|
|
405
405
|
dtime = ltime - PgSIG.PGSIG['DTIME']
|
|
406
406
|
ctime = ltime - PgSIG.PGSIG['CTIME']
|
|
407
407
|
rtime = ltime - PgSIG.PGSIG['RTIME']
|
|
408
|
-
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost
|
|
408
|
+
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost {} OR chktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, CHKHOST['hostcond'], rtime)
|
|
409
409
|
|
|
410
410
|
pgrecs = PgDBI.pgmget("dscheck", "*", cnd, logact)
|
|
411
411
|
cnt = (len(pgrecs['cindex']) if pgrecs else 0)
|
|
@@ -1097,7 +1097,7 @@ def check_dsrqst_locks(cnd, logact = 0):
|
|
|
1097
1097
|
dtime = ltime - PgSIG.PGSIG['DTIME']
|
|
1098
1098
|
ctime = ltime - PgSIG.PGSIG['CTIME']
|
|
1099
1099
|
rtime = ltime - PgSIG.PGSIG['RTIME']
|
|
1100
|
-
cnd += "locktime > 0 AND (locktime < {} OR locktime < {} AND lockhost
|
|
1100
|
+
cnd += "locktime > 0 AND (locktime < {} OR locktime < {} AND lockhost {} OR locktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, CHKHOST['hostcond'], rtime)
|
|
1101
1101
|
check_partition_locks(cnd, ltime, logact) # check partitions first
|
|
1102
1102
|
|
|
1103
1103
|
pgrecs = PgDBI.pgmget("dsrqst", "rindex, lockhost, pid, locktime", cnd, logact)
|
|
@@ -1304,7 +1304,7 @@ def check_dsupdt_locks(ocnd, logact = 0):
|
|
|
1304
1304
|
cnd = ocnd + "pid > 0 AND "
|
|
1305
1305
|
ctime = ltime - 4*PgSIG.PGSIG['CTIME']
|
|
1306
1306
|
rtime = ltime - PgSIG.PGSIG['RTIME']
|
|
1307
|
-
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost
|
|
1307
|
+
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost {} OR chktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, CHKHOST['hostcond'], rtime)
|
|
1308
1308
|
|
|
1309
1309
|
pgrecs = PgDBI.pgmget("dcupdt", "cindex, lockhost, pid, chktime", cnd, logact)
|
|
1310
1310
|
cnt = (len(pgrecs['cindex']) if pgrecs else 0)
|
|
@@ -1335,7 +1335,7 @@ def check_dsupdt_locks(ocnd, logact = 0):
|
|
|
1335
1335
|
if cnt > 1: PgLOG.pglog("{} of {} DSUPDT Controls unlocked on {}".format(lcnt, cnt, PgLOG.PGLOG['HOSTNAME']), PgLOG.WARNLG)
|
|
1336
1336
|
|
|
1337
1337
|
cnd = ocnd + "pid > 0 AND locktime > 0 AND "
|
|
1338
|
-
cnd += "(locktime < {} OR locktime < {} AND hostname
|
|
1338
|
+
cnd += "(locktime < {} OR locktime < {} AND hostname {} OR locktime < {} AND hostname = 'rda_config')".format(ctime, dtime, CHKHOST['hostcond'], rtime)
|
|
1339
1339
|
|
|
1340
1340
|
pgrecs = PgDBI.pgmget("dlupdt", "lindex, hostname, pid, locktime", cnd, logact)
|
|
1341
1341
|
cnt = (len(pgrecs['lindex']) if pgrecs else 0)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_dscheck-1.0.7 → rda_python_dscheck-1.0.8}/src/rda_python_dscheck.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|