quota: use copy_frame when creating new frame during quota_check_limit
authorvmallika <vmallika@redhat.com>
Tue, 6 Oct 2015 12:46:49 +0000 (18:16 +0530)
committerRaghavendra G <rgowdapp@redhat.com>
Wed, 7 Oct 2015 04:04:53 +0000 (21:04 -0700)
commitff5ea98c6c0ffb7398562b418e8e9c422f08691d
treef401b4534164fe4ff3db40132d732f1a708eacf2
parentb7d2dba8b655f174f810ba0aa9a4770e5cfaa609
quota: use copy_frame when creating new frame during quota_check_limit

DHT re-balance, sets frame root PID < 0 and quota_check_limit skips
enforcement if this PID is less than 0.

When creating new frame for quota_check_limit we need to use
copy_frame instead of create_frame, so that all auth information
are copied from original frame.

Change-Id: Ib3b4a3744f8b0d72a8bc32826f6edae836d6faed
BUG: 1267812
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/12265
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
tests/bugs/quota/bug-1260545.t
xlators/features/quota/src/quota.c