mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 10:06:14 +00:00
feat(data): when extent is mark delete, write op not failed.
Signed-off-by: Victor1319 <834863182@qq.com>
This commit is contained in:
parent
f6861102e0
commit
45b6896c46
@ -387,7 +387,7 @@ func (s *ExtentStore) Write(extentID uint64, offset, size int64, data []byte, cr
|
||||
)
|
||||
|
||||
s.eiMutex.Lock()
|
||||
ei, _ = s.extentInfoMap[extentID]
|
||||
ei = s.extentInfoMap[extentID]
|
||||
e, err = s.extentWithHeader(ei)
|
||||
s.eiMutex.Unlock()
|
||||
if err != nil {
|
||||
@ -405,10 +405,10 @@ func (s *ExtentStore) Write(extentID uint64, offset, size int64, data []byte, cr
|
||||
} else {
|
||||
if s.extentLock {
|
||||
if _, ok := s.extentLockMap[extentID]; ok {
|
||||
s.elMutex.RUnlock()
|
||||
err = fmt.Errorf("extent(%v) is locked", extentID)
|
||||
log.LogErrorf("[Write] gc_extent[%d] is locked", extentID)
|
||||
return
|
||||
// s.elMutex.RUnlock()
|
||||
// err = fmt.Errorf("extent(%v) is locked", extentID)
|
||||
log.LogErrorf("[Write] gc_extent[%d] is locked, path %s", extentID, s.dataPath)
|
||||
// return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user