MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / getLatestVbUUID

Function getLatestVbUUID

base/dcp_client.go:656–662  ·  view source on GitHub ↗

getLatestVbUUID returns the VbUUID associated with the highest sequence in the failover log

(failoverLog []gocbcore.FailoverEntry)

Source from the content-addressed store, hash-verified

654
655// getLatestVbUUID returns the VbUUID associated with the highest sequence in the failover log
656func getLatestVbUUID(failoverLog []gocbcore.FailoverEntry) (vbUUID gocbcore.VbUUID) {
657 if len(failoverLog) == 0 {
658 return 0
659 }
660 entry := failoverLog[len(failoverLog)-1]
661 return entry.VbUUID
662}
663
664func (dc *DCPClient) GetMetadataKeyPrefix() string {
665 return dc.metadata.GetKeyPrefix()

Callers 1

verifyFailoverLogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected