mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
prevent nil
This commit is contained in:
parent
60158a23b3
commit
4ccfdaeb4d
|
@ -61,7 +61,7 @@ func (mc *MetaCache) AtomicUpdateEntry(ctx context.Context, oldPath util.FullPat
|
||||||
oldDir, _ := oldPath.DirAndName()
|
oldDir, _ := oldPath.DirAndName()
|
||||||
if mc.visitedBoundary.HasVisited(util.FullPath(oldDir)) {
|
if mc.visitedBoundary.HasVisited(util.FullPath(oldDir)) {
|
||||||
if oldPath != "" {
|
if oldPath != "" {
|
||||||
if oldPath == newEntry.FullPath {
|
if newEntry != nil && oldPath == newEntry.FullPath {
|
||||||
// skip the unnecessary deletion
|
// skip the unnecessary deletion
|
||||||
// leave the update to the following InsertEntry operation
|
// leave the update to the following InsertEntry operation
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue