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

Function userXattrCrc32cHash

db/document.go:472–478  ·  view source on GitHub ↗
(userXattr []byte)

Source from the content-addressed store, hash-verified

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)
474 if len(userXattr) == 0 {
475 return ""
476 }
477 return base.Crc32cHashString(userXattr)
478}
479
480// Unmarshals a document from JSON data. The doc ID isn't in the data and must be given. Uses decode to ensure
481// UseNumber handling is applied to numbers in the body.

Callers 2

HasUserXattrChangedFunction · 0.85

Calls 1

Crc32cHashStringFunction · 0.92

Tested by

no test coverage detected