MCPcopy Create free account
hub / github.com/wal-e/wal-e / success

Function success

tests/test_wal_transfer.py:51–60  ·  view source on GitHub ↗

Returns true if a segment has been successfully uploaded. Checks that mark_done was not called if this is an 'explicit' wal segment from Postgres.

(seg)

Source from the content-addressed store, hash-verified

49
50
51def success(seg):
52 """Returns true if a segment has been successfully uploaded.
53
54 Checks that mark_done was not called if this is an 'explicit' wal
55 segment from Postgres.
56 """
57 if seg.explicit:
58 assert seg._marked is False
59
60 return seg._uploaded
61
62
63def indeterminate(seg):

Callers 3

test_simple_uploadFunction · 0.85
test_multi_uploadFunction · 0.85
test_multi_explicit_failFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected