summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/server.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-06-19 13:39:57 -0700
committergVisor bot <gvisor-bot@google.com>2019-06-19 13:41:07 -0700
commit9d2efaac5af3618a637abe2dba23f63387dd086e (patch)
treedf076ad901eb4e6fb22698cd1b05b6a61d81a49e /pkg/p9/server.go
parent29f9e4fa876a8f4f6cda8c54e99de59982692962 (diff)
Add renamed children pathNodes to target parent
Otherwise future renames may miss Renamed calls. PiperOrigin-RevId: 254060946
Diffstat (limited to 'pkg/p9/server.go')
-rw-r--r--pkg/p9/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/p9/server.go b/pkg/p9/server.go
index c3ab7dad1..bdeb495c2 100644
--- a/pkg/p9/server.go
+++ b/pkg/p9/server.go
@@ -264,7 +264,7 @@ func (f *fidRef) renameChildTo(oldName string, target *fidRef, newName string) {
})
// Replace the previous (now deleted) path node.
- f.pathNode.children.Store(newName, origPathNode)
+ target.pathNode.children.Store(newName, origPathNode)
// Call Renamed on everything above.
notifyNameChange(origPathNode)