6
6
@six .python_2_unicode_compatible
7
7
class First :
8
8
"""
9
- Specifies a priority-based synchronous replication and makes transaction
10
- commits wait until their WAL records are replicated to ``num_sync``
11
- synchronous standbys chosen based on their priorities.
12
-
13
- Args:
14
- sync_num (int): the number of standbys that transaction need to wait
15
- for replies from
16
- standbys (:obj:`list` of :class:`.PostgresNode`): the list of standby
17
- nodes
18
- """
9
+ Specifies a priority-based synchronous replication and makes transaction
10
+ commits wait until their WAL records are replicated to ``num_sync``
11
+ synchronous standbys chosen based on their priorities.
12
+
13
+ Args:
14
+ sync_num (int): the number of standbys that transaction need to wait
15
+ for replies from
16
+ standbys (:obj:`list` of :class:`.PostgresNode`): the list of standby
17
+ nodes
18
+ """
19
19
20
20
def __init__ (self ,sync_num ,standbys ):
21
21
self .sync_num = sync_num
@@ -29,16 +29,16 @@ def __str__(self):
29
29
@six .python_2_unicode_compatible
30
30
class Any :
31
31
"""
32
- Specifies a quorum-based synchronous replication and makes transaction
33
- commits wait until their WAL records are replicated to at least ``num_sync``
34
- listed standbys. Only available for Postgres 10 and newer.
35
-
36
- Args:
37
- sync_num (int): the number of standbys that transaction need to wait
38
- for replies from
39
- standbys (:obj:`list` of :class:`.PostgresNode`): the list of standby
40
- nodes
41
- """
32
+ Specifies a quorum-based synchronous replication and makes transaction
33
+ commits wait until their WAL records are replicated to at least ``num_sync``
34
+ listed standbys. Only available for Postgres 10 and newer.
35
+
36
+ Args:
37
+ sync_num (int): the number of standbys that transaction need to wait
38
+ for replies from
39
+ standbys (:obj:`list` of :class:`.PostgresNode`): the list of standby
40
+ nodes
41
+ """
42
42
43
43
def __init__ (self ,sync_num ,standbys ):
44
44
self .sync_num = sync_num