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

Method ReplicationStatusKey

base/constants_syncdocs.go:201–203  ·  view source on GitHub ↗

ReplicationStatusKey generates the key used to store status information for an ISGR replication. If replicationID is 40 characters or longer, an SHA-1 hash of the replicationID is used in the status key. If the replicationID is less than 40 characters, the ID can be used directly without worrying a

(replicationID string)

Source from the content-addressed store, hash-verified

199//
200// format: _sync:{m_$}:sgrStatus:[replicationID]
201func (m *MetadataKeys) ReplicationStatusKey(replicationID string) string {
202 return m.sgrStatusPrefix + m.serializeIfLonger(replicationID)
203}
204
205// HeartbeaterPrefix returns a document prefix to use for heartbeat documents
206//

Callers 2

LoadReplicationStatusFunction · 0.80

Calls 1

serializeIfLongerMethod · 0.95

Tested by

no test coverage detected