Skip to content

Commit

Permalink
Hadoop: fix acl test
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoupeng committed Mar 3, 2025
1 parent c71c893 commit 4456d80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sdk/java/libjfs/guid.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func (m *mapping) lookupUser(name string) uint32 {
}
if !m.local {
id := m.genGuid(name)
m.usernames[name] = id
m.userIDs[id] = name
m.updateUser(name, id)
return id
}
if name == "root" { // root in hdfs sdk is a normal user
Expand All @@ -100,7 +99,9 @@ func (m *mapping) lookupGroup(name string) uint32 {
return id
}
if !m.local {
return m.genGuid(name)
id := m.genGuid(name)
m.updateGroup(name, id)
return id
}
if name == "root" {
id = m.genGuid(name)
Expand Down

0 comments on commit 4456d80

Please sign in to comment.