]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update keystone cache with token info 4017/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 3 Mar 2015 19:03:35 +0000 (11:03 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 16 Mar 2015 20:43:10 +0000 (13:43 -0700)
Fixes: #11125
Backport: hammer, firefly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_swift.cc

index 831307e23616f6ffbe4f5b574ff51fd5fb0869f2..76f21eeb16b61ad6cc979cec419d1f88ae74c31c 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;