MCPcopy Create free account
hub / github.com/dolthub/doltgresql / writeWALPosition

Method writeWALPosition

server/logrepl/replication.go:786–788  ·  view source on GitHub ↗

writeWALPosition writes the recorded WAL position to the WAL position file

(lsn pglogrepl.LSN)

Source from the content-addressed store, hash-verified

784
785// writeWALPosition writes the recorded WAL position to the WAL position file
786func (r *LogicalReplicator) writeWALPosition(lsn pglogrepl.LSN) error {
787 return os.WriteFile(r.walFilePath, []byte(lsn.String()), 0644)
788}
789
790// whereClause returns a WHERE clause string with the contents of the builder if it's non-empty, or the empty
791// string otherwise

Callers 1

StartReplicationMethod · 0.95

Calls 2

StringMethod · 0.65
WriteFileMethod · 0.45

Tested by

no test coverage detected