Skip to content

Commit 449b16c

Browse files
committed
Abort add_node when stale replication origin cleanup fails
Stale-origin drop exists to prevent create_sub from reusing a leftover LSN and silently skipping data. Swallowing the error with RAISE WARNING defeated that safety net.
1 parent 4083e20 commit 449b16c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/Z0DAN/zodan.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ BEGIN
15071507
slot_name;
15081508
EXCEPTION
15091509
WHEN OTHERS THEN
1510-
RAISE WARNING ' Could not drop stale origin % on new node: %',
1510+
RAISE EXCEPTION 'Could not drop stale origin % on new node: %',
15111511
slot_name, SQLERRM;
15121512
END;
15131513
CALL spock.create_sub(

0 commit comments

Comments
 (0)