update. clean code duplicated

Signed-off-by: leonrayang <chl696@sina.com>
This commit is contained in:
leonrayang 2022-05-09 14:53:32 +08:00 committed by leonrayang
parent 2a17245c85
commit ff4eb8d822

View File

@ -587,10 +587,6 @@ func (mw *MetaWrapper) AppendExtentKey(parentInode, inode uint64, ek proto.Exten
oldInfo, _ = mw.InodeGet_ll(inode)
}
if mw.EnableSummary {
oldInfo, _ = mw.InodeGet_ll(inode)
}
status, err := mw.appendExtentKey(mp, inode, ek, discard)
if err != nil || status != statusOK {
log.LogErrorf("AppendExtentKey: inode(%v) ek(%v) local discard(%v) err(%v) status(%v)", inode, ek, discard, err, status)