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)
| 49 | |
| 50 | |
| 51 | def 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 | |
| 63 | def indeterminate(seg): |
no outgoing calls
no test coverage detected