diff options
author | Anand Avati <avati@redhat.com> | 2013-05-02 23:36:01 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-09-09 17:25:38 -0700 |
commit | 8eb866cc0c3ed17f7cd9ca7d6cfc3dc3de140835 (patch) | |
tree | 33c9880e6a30bda624168907fd2e2a638528eee6 /xlators/protocol/server/src/server-helpers.c | |
parent | 7a28d8537817d6285d611e08393c1614c42a03be (diff) |
core: increase the auxillary group limit to 65536
Make the allocation of groups dynamic and increase the limit
to 65536.
Change-Id: I702364ff460e3a982e44ccbcb3e337cac9c2df51
BUG: 953694
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5172
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/protocol/server/src/server-helpers.c')
-rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index e2bbf4bcb..3c6ea58d7 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -26,6 +26,9 @@ server_decode_groups (call_frame_t *frame, rpcsvc_request_t *req) GF_VALIDATE_OR_GOTO ("server", frame, out); GF_VALIDATE_OR_GOTO ("server", req, out); + if (call_stack_alloc_groups (frame->root, req->auxgidcount) != 0) + return -1; + frame->root->ngrps = req->auxgidcount; if (frame->root->ngrps == 0) return 0; |