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

Method SetCrc32cUserXattrHash

db/document.go:468–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466}
467
468func (doc *Document) SetCrc32cUserXattrHash() {
469 doc.SyncData.Crc32cUserXattr = userXattrCrc32cHash(doc.rawUserXattr)
470}
471
472func userXattrCrc32cHash(userXattr []byte) string {
473 // If user xattr is empty then set hash to empty (feature has been disabled or doc doesn't have xattr)

Callers 2

ResyncDocumentMethod · 0.80
updateAndReturnDocMethod · 0.80

Calls 1

userXattrCrc32cHashFunction · 0.85

Tested by

no test coverage detected