MCPcopy
hub / github.com/cubefs/cubefs / setVer

Method setVer

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

Source from the content-addressed store, hash-verified

193}
194
195func (i *Inode) setVer(seq uint64) {
196 if i.getVer() > seq {
197 syslog.Printf("inode[%v] old seq [%v] cann't use seq [%v]\n", i.getVer(), seq, string(debug.Stack()))
198 log.LogFatalf("inode[%v] old seq [%v] cann't use seq [%v] stack %v", i.Inode, i.getVer(), seq, string(debug.Stack()))
199 }
200 i.verUpdate(seq)
201}
202
203func (i *Inode) insertEkRefMap(mpId uint64, ek *proto.ExtentKey) {
204 if !clusterEnableSnapshot {

Callers 15

testCreateInodeFunction · 0.95
testDeleteFileFunction · 0.95
TestInodeVerMarshalFunction · 0.95
UnmarshalInodeValueV2Method · 0.95
inodeUnlinkVerInListMethod · 0.95
CreateUnlinkVerMethod · 0.95
CreateVerMethod · 0.95
ExtentAppendWithCheckMethod · 0.95
ObjExtentsListMethod · 0.95
ExtentsTruncateMethod · 0.95
CreateInodeMethod · 0.95

Calls 4

getVerMethod · 0.95
verUpdateMethod · 0.95
LogFatalfFunction · 0.92
PrintfMethod · 0.65

Tested by 4

testCreateInodeFunction · 0.76
testDeleteFileFunction · 0.76
TestInodeVerMarshalFunction · 0.76