Skip to content

Commit

Permalink
After review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyAkentiev committed Aug 13, 2024
1 parent 8629939 commit 78ddad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ func (c *coordinator) MakeSpaceUnshareable(ctx context.Context, spaceId, aclHead
}

err = c.spaceStatus.MakeUnshareable(ctx, spaceId)
if err != nil {
return
}

return c.aclEventLog.AddLog(ctx, acleventlog.AclEventLogEntry{
SpaceId: spaceId,
Expand Down
7 changes: 0 additions & 7 deletions coordinator/rpchandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,6 @@ func (r *rpcHandler) AclEventLog(ctx context.Context, req *coordinatorproto.AclE
Type: t,
})

// add additional fields for some record types

// TODO: copy SignedSpaceReceipt field, protos does not have it yet
// if rec.EntryType == acleventlog.EntryTypeSpaceReceipt {
// resp.Records[len(resp.Records)-1].SignedSpaceReceipt = rec.SignedSpaceReceipt
// }

if rec.EntryType == acleventlog.EntryTypeSpaceAclAddRecord {
resp.Records[len(resp.Records)-1].AclChangeId = rec.AclChangeId
}
Expand Down

0 comments on commit 78ddad7

Please sign in to comment.