|
12 | 12 | importsubprocess |
13 | 13 | importtime |
14 | 14 |
|
15 | | -fromos_opsimportOsOperations |
16 | 15 |
|
17 | 16 | try: |
18 | 17 | fromcollections.abcimportIterable |
|
102 | 101 | clean_on_error |
103 | 102 |
|
104 | 103 | from .backupimportNodeBackup |
| 104 | +from .os_opsimportOsOperations |
105 | 105 |
|
106 | 106 | InternalError=pglib.InternalError |
107 | 107 | ProgrammingError=pglib.ProgrammingError |
@@ -1606,8 +1606,10 @@ def make_simple( |
1606 | 1606 | set_replication=False, |
1607 | 1607 | ptrack_enable=False, |
1608 | 1608 | initdb_params=[], |
1609 | | -pg_options={}): |
1610 | | - |
| 1609 | +pg_options={}, |
| 1610 | +checksum=True): |
| 1611 | +ifchecksumand'--data-checksums'notininitdb_params: |
| 1612 | +initdb_params.append('--data-checksums') |
1611 | 1613 | node=self.make_empty(base_dir) |
1612 | 1614 | node.init( |
1613 | 1615 | initdb_params=initdb_params,allow_streaming=set_replication) |
|