MCPcopy Create free account
hub / github.com/apecloud/myduckserver / waitForRunning

Function waitForRunning

pgserver/logrepl/replication_test.go:909–923  ·  view source on GitHub ↗
(r *logrepl.LogicalReplicator)

Source from the content-addressed store, hash-verified

907}
908
909func waitForRunning(r *logrepl.LogicalReplicator) error {
910 start := time.Now()
911 for {
912 if r.Running() {
913 break
914 }
915
916 if time.Since(start) > time.Second {
917 return errors.New("Replication did not start")
918 }
919 time.Sleep(10 * time.Millisecond)
920 }
921
922 return nil
923}
924
925func waitForCaughtUp(r *logrepl.LogicalReplicator) error {
926 log.Println("Waiting for replication to catch up")

Callers 1

handlePseudoQueryFunction · 0.85

Calls 1

RunningMethod · 0.80

Tested by

no test coverage detected