]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initialize RGWUserAdminOpState::system_specified
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 21 Nov 2013 14:52:48 +0000 (06:52 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 28 Jan 2014 21:06:27 +0000 (13:06 -0800)
Fixes: #6829
Backport: dumpling, emperor
We didn't init this member variable, which might cause that when
modifying user info that has this flag set the 'system' flag might
inadvertently reset.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 561e7b0b287e65e90b80699e45a52ae44e94684f)

src/rgw/rgw_user.h

index 32bcf199001c9a6ef68cdfb633174469defd5830..b126b2acce29299105887cb0c30aa7f0df00f57c 100644 (file)
@@ -397,6 +397,7 @@ struct RGWUserAdminOpState {
     perm_specified = false;
     op_mask_specified = false;
     suspension_op = false;
+    system_specified = false;
     key_op = false;
     populated = false;
     initialized = false;