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

Method PurgeOldRevisionJSON

db/revision.go:376–379  ·  view source on GitHub ↗

Currently only used by unit tests - deletes an archived old revision from the database

(ctx context.Context, docid string, revid string)

Source from the content-addressed store, hash-verified

374
375// Currently only used by unit tests - deletes an archived old revision from the database
376func (c *DatabaseCollection) PurgeOldRevisionJSON(ctx context.Context, docid string, revid string) error {
377 base.DebugfCtx(ctx, base.KeyCRUD, "Purging old revision backup %q / %q ", base.UD(docid), revid)
378 return c.dataStore.Delete(oldRevisionKey(docid, revid))
379}
380
381// ////// UTILITY FUNCTIONS:
382

Calls 4

DebugfCtxFunction · 0.92
UDFunction · 0.92
oldRevisionKeyFunction · 0.85
DeleteMethod · 0.45