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

Function getOldRevisionJSONAndMeta

db/revision.go:289–295  ·  view source on GitHub ↗
(payload []byte)

Source from the content-addressed store, hash-verified

287}
288
289func getOldRevisionJSONAndMeta(payload []byte) (jsonBody []byte, kvPairs map[string][]byte, err error) {
290 body, meta, err := sgbucket.DecodeValueWithAllXattrs(payload)
291 if err != nil {
292 return nil, nil, err
293 }
294 return body, meta, nil
295}
296
297// Makes a backup of revision body for use by in-flight replications requesting an old revision (for clients not supporting replacementRevs)
298func (db *DatabaseCollectionWithUser) backupRevisionJSON(ctx context.Context, docId, oldRev string, oldBody []byte, channels base.Set, deleted bool) {

Callers 1

getOldRevisionJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected