@@ -557,7 +557,7 @@ adjust_progress_info(PGconn *origin_conn)
557557}
558558
559559/*
560- * spock_create_slot_and_get_progress
560+ * spock_create_slot_and_read_progress
561561 *
562562 * Pauses apply workers, creates a replication slot via the replication
563563 * protocol (which returns a snapshot consistent with the slot's WAL
@@ -568,7 +568,7 @@ adjust_progress_info(PGconn *origin_conn)
568568 * after the COPY phase completes.
569569 */
570570static char *
571- spock_create_slot_and_get_progress (PGconn * conn , PGconn * repl_conn ,
571+ spock_create_slot_and_read_progress (PGconn * conn , PGconn * repl_conn ,
572572 const char * slot_name ,
573573 Oid origin_node_id , Oid subscriber_node_id ,
574574 XLogRecPtr * lsn_out , List * * progress_out )
@@ -670,7 +670,7 @@ spock_create_slot_and_get_progress(PGconn *conn, PGconn *repl_conn,
670670
671671 /* Read peer progress via the SQL function (slot already exists) */
672672 appendStringInfo (& query ,
673- "SELECT * FROM spock.create_slot_with_progress "
673+ "SELECT * FROM spock.read_peer_progress "
674674 "('%s', %u, %u)" ,
675675 slot_name , origin_node_id , subscriber_node_id );
676676 res = PQexec (conn , query .data );
@@ -682,7 +682,7 @@ spock_create_slot_and_get_progress(PGconn *conn, PGconn *repl_conn,
682682
683683 nrows = PQntuples (res );
684684 if (nrows < 1 )
685- elog (ERROR , "spock.create_slot_with_progress returned no rows" );
685+ elog (ERROR , "spock.read_peer_progress returned no rows" );
686686
687687 /* Row 0 is the header row: lsn + snapshot, progress fields all NULL.
688688 * lsn_out and snapshot are already set from the replication protocol;
@@ -771,7 +771,7 @@ spock_create_slot_and_get_progress(PGconn *conn, PGconn *repl_conn,
771771 * spock_release_slot_snapshot
772772 *
773773 * Rolls back the snapshot transaction opened by
774- * spock_create_slot_and_get_progress and closes the connection.
774+ * spock_create_slot_and_read_progress and closes the connection.
775775 */
776776static void
777777spock_release_slot_snapshot (PGconn * conn )
@@ -1454,7 +1454,7 @@ spock_sync_subscription(SpockSubscription *sub)
14541454 */
14551455 PG_TRY ();
14561456 {
1457- snapshot = spock_create_slot_and_get_progress (
1457+ snapshot = spock_create_slot_and_read_progress (
14581458 origin_conn ,
14591459 origin_conn_repl ,
14601460 sub -> slot_name ,
0 commit comments