]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update keystone cache with token info
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 3 Mar 2015 19:03:35 +0000 (11:03 -0800)
committerKen Dreyer <kdreyer@redhat.com>
Mon, 4 May 2015 18:54:10 +0000 (12:54 -0600)
Fixes: #11125
Backport: hammer, firefly

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

src/rgw/rgw_swift.cc

index 737710d10a0c24a958a3800797edd58d9b4cfd48..586821e8db30ba949e7a1721383b52761e5dc989 100644 (file)
@@ -523,6 +523,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;