def success(seg):
if seg.explicit:<EOL><INDENT>assert seg._marked is False<EOL><DEDENT>return seg._uploaded<EOL>
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.