Skip to content

Commit 4c5923a

Browse files
committed
Replace reference to global instance with "self"
1 parent 6c130c3 commit 4c5923a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/cmd_standby

+4-4
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class CMDStandby(CMDWorker):
378378

379379
# Simple function to help ensure we have all paths created for postgresql
380380
def dbinit_func(self):
381-
check = standby.check_pgpid_func()
381+
check = self.check_pgpid_func()
382382
if check == 0:
383383
self.log("dbinit_func(): Can not execute --dbinit with PG running locally", "ERROR")
384384
return False
@@ -398,7 +398,7 @@ class CMDStandby(CMDWorker):
398398
except Exception, e:
399399
self.log("dbinit_func(): %s " % e, "ERROR")
400400
else:
401-
self.log("dbinit_func(): Standby is ready")
401+
self.log("dbinit_func(): Standby filesystem is ready")
402402
return True
403403
self.log("dbinit_func(): failed", "ERROR")
404404
return False
@@ -449,7 +449,7 @@ class CMDStandby(CMDWorker):
449449
# check whether PostgreSQL has already started. Sleep to give it time to write
450450
# the pid file.
451451
sleep(2)
452-
check = standby.check_pgpid_func()
452+
check = self.check_pgpid_func()
453453
if check != 0:
454454
self.log("start_postgresql_func(): PostgreSQL refused to start", "ERROR")
455455
return False
@@ -504,7 +504,7 @@ class CMDStandby(CMDWorker):
504504
# and start postgresql
505505
def standby_func(self):
506506
result = False
507-
check = standby.check_pgpid_func()
507+
check = self.check_pgpid_func()
508508
if check == 0:
509509
self.log("standby_func(): Can not enter standby mode if PG is already running", "ERROR")
510510
return False

0 commit comments

Comments
 (0)