Skip to content

Commit f874640

Browse files
committed
fix: query execution function change
1 parent 4a86453 commit f874640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/plugins/pgsql/xlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def run(self, zbx):
8383
result = Pooler.run_sql_type('count_xlog_files')
8484
zbx.send(self.key_count_wall.format("[]"), int(result[0][0]))
8585

86-
non_active_slots = Pooler.run_sql_type("""SELECT count(*) FROM pg_replication_slots WHERE active = 'false';""")
86+
non_active_slots = Pooler.query("""SELECT count(*) FROM pg_replication_slots WHERE active = 'false';""")
8787
zbx.send(self.key_non_active_slots.format("[]"), int(non_active_slots[0][0]))
8888

8989
def items(self, template):

0 commit comments

Comments
 (0)