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

Method removeRevisionBody

db/document.go:809–817  ·  view source on GitHub ↗
(ctx context.Context, revID string)

Source from the content-addressed store, hash-verified

807}
808
809func (doc *Document) removeRevisionBody(ctx context.Context, revID string) {
810 removedBodyKey := doc.History.removeRevisionBody(ctx, revID)
811 if removedBodyKey != "" {
812 if doc.removedRevisionBodyKeys == nil {
813 doc.removedRevisionBodyKeys = make(map[string]string)
814 }
815 doc.removedRevisionBodyKeys[revID] = removedBodyKey
816 }
817}
818
819// makeBodyActive moves a previously non-winning revision body from the rev tree to the document body
820func (doc *Document) promoteNonWinningRevisionBody(ctx context.Context, revid string, loader RevLoaderFunc) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected