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

Function oldRevisionKey

db/revision.go:384–386  ·  view source on GitHub ↗

UTILITY FUNCTIONS: oldRevisionKey returns the key for the document that stores a copy of the document's body for a given old revision.

(docid string, rev string)

Source from the content-addressed store, hash-verified

382
383// oldRevisionKey returns the key for the document that stores a copy of the document's body for a given old revision.
384func oldRevisionKey(docid string, rev string) string {
385 return fmt.Sprintf("%s%s:%d:%s", base.RevPrefix, docid, len(rev), rev)
386}
387
388// Version of FixJSONNumbers (see base/util.go) that operates on a Body
389func (body Body) FixJSONNumbers() {

Callers 8

TestAttachmentsFunction · 0.85
getOldRevisionJSONMethod · 0.85
setOldRevisionJSONMethod · 0.85
PurgeOldRevisionJSONMethod · 0.85
setOldRevisionJSONPtrMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestAttachmentsFunction · 0.68