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

Method persistRevisionBody

db/document.go:903–906  ·  view source on GitHub ↗
(datastore sgbucket.DataStore, key string, body []byte)

Source from the content-addressed store, hash-verified

901}
902
903func (doc *Document) persistRevisionBody(datastore sgbucket.DataStore, key string, body []byte) error {
904 _, err := datastore.AddRaw(key, 0, body)
905 return err
906}
907
908// Move any large revision bodies to external document storage
909func (doc *Document) migrateRevisionBodies(ctx context.Context, dataStore base.DataStore) error {

Callers 2

migrateRevisionBodiesMethod · 0.95

Calls 1

AddRawMethod · 0.45

Tested by

no test coverage detected