MCPcopy
hub / github.com/cubefs/cubefs / verUpdate

Method verUpdate

metanode/inode.go:176–185  ·  view source on GitHub ↗
(seq uint64)

Source from the content-addressed store, hash-verified

174}
175
176func (i *Inode) verUpdate(seq uint64) {
177 if seq == 0 && i.multiSnap == nil {
178 return
179 }
180 if i.multiSnap == nil {
181 i.multiSnap = NewMultiSnap(seq)
182 } else {
183 i.multiSnap.verSeq = seq
184 }
185}
186
187func (i *Inode) setVerNoCheck(seq uint64) {
188 i.verUpdate(seq)

Callers 2

setVerNoCheckMethod · 0.95
setVerMethod · 0.95

Calls 1

NewMultiSnapFunction · 0.85

Tested by

no test coverage detected