Skip to content

Commit dcdd806

Browse files
committed
fix: removed unused import statement and changed description in preparedtransaction section
1 parent 1b06cdb commit dcdd806

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

mamonsu/plugins/pgsql/prepared_transaction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: utf-8 -*-
22

33
from mamonsu.plugins.pgsql.plugin import PgsqlPlugin as Plugin
4-
from distutils.version import LooseVersion
54
from .pool import Pooler
65

76

@@ -10,7 +9,7 @@ class PreparedTransaction(Plugin):
109
key_count = {
1110
'state': 'count_prepared',
1211
'key': 'pgsql.prepared.count',
13-
'name': 'PostgreSQL: numder of prepared transactions',
12+
'name': 'PostgreSQL: number of prepared transactions',
1413
'color': '00BB00',
1514
'yaxisside': 0,
1615
}

packaging/conf/example.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ enabled = False
178178
relations=pg_catalog.pg_class,pg_catalog.pg_user
179179
interval = 500
180180

181-
# Get age in second and number of transactions that are currently prepared for two-phase commit.
181+
# Get age (in seconds) of the oldest running prepared transaction and number of all prepared transactions for two-phase commit.
182182
# https://www.postgresql.org/docs/current/sql-prepare-transaction.html
183183
# https://www.postgresql.org/docs/12/view-pg-prepared-xacts.html
184-
# max_prepared_transaction_time - age of prepared pransaction in second, after which the trigger run.
185-
# (возраст подготовленных транзакций, после которого срабатывает триггер.) ????
184+
# max_prepared_transaction_time - age of prepared transaction in seconds.
185+
# If pgsql.prepared.oldest exceeds max_prepared_transaction_time the trigger fires.
186186
[preparedtransaction]
187187
max_prepared_transaction_time = 60
188188
interval = 60

0 commit comments

Comments
 (0)