MCPcopy
hub / github.com/cubefs/cubefs / endWriteProtection

Method endWriteProtection

sdk/data/stream/stream_reader.go:783–789  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

781}
782
783func (s *Streamer) endWriteProtection() {
784 s.writeProtectionLock.Lock()
785 defer s.writeProtectionLock.Unlock()
786 s.writeInProgress = false
787 s.writeHandler = nil
788 log.LogDebugf("Write protection ended for streamer(%v)", s.inode)
789}
790
791func (s *Streamer) isHandlerProtected(handler *ExtentHandler) bool {
792 s.writeProtectionLock.Lock()

Callers 1

Calls 3

LogDebugfFunction · 0.92
LockMethod · 0.80
UnlockMethod · 0.45

Tested by 1