]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update keystone cache with token info 4414/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 3 Mar 2015 19:03:35 +0000 (11:03 -0800)
committerxinxin shu <xinxin.shu@intel.com>
Tue, 21 Apr 2015 00:46:46 +0000 (08:46 +0800)
Fixes: #11125
Backport: hammer, firefly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 6616294aa140ceb83cc61c6ab6f9947636f5e67d)

src/rgw/rgw_swift.cc

index 46c45bd9dfe76c4db3a0993794d1c5092ba5f90c..1b724ed98126a28f1249668e803b9b4edb3108a7 100644 (file)
@@ -520,6 +520,8 @@ int RGWSwift::validate_keystone_token(RGWRados *store, const string& token, stru
   if (ret < 0)
     return ret;
 
+  keystone_token_cache->add(token_id, t);
+
   ret = update_user_info(store, info, rgw_user);
   if (ret < 0)
     return ret;