mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
postgres_ffi: test restoring from intermediate LSNs by wal_craft
This commit is contained in:
committed by
Egor Suvorov
parent
19ea486cde
commit
94003e1ebc
@@ -1276,12 +1276,9 @@ class WalCraft(AbstractNeonCli):
|
||||
res.check_returncode()
|
||||
return res.stdout.split('\n')
|
||||
|
||||
def in_existing(self, type: str, connection: str) -> int:
|
||||
def in_existing(self, type: str, connection: str) -> None:
|
||||
res = self.raw_cli(["in-existing", type, connection])
|
||||
res.check_returncode()
|
||||
m = re.fullmatch(r'end_of_wal = (.*)\n', res.stdout)
|
||||
assert m
|
||||
return lsn_from_hex(m.group(1))
|
||||
|
||||
|
||||
class NeonPageserver(PgProtocol):
|
||||
|
||||
Reference in New Issue
Block a user