]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rename data receive callbacks in swift token revocation
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 9 Aug 2013 16:31:28 +0000 (09:31 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 9 Aug 2013 19:33:06 +0000 (12:33 -0700)
Fixes: #5921
As part of the work that was made for dumpling, the http
client in-data callback was renamed in order to avoid confusion.
However, we missed the rename in a couple of places, which this
patch amend.

Reported-by: Roald van Loon <roaldvanloon@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_swift.cc

index 9be9757e5f89a29d490132b2bd7a09b4f95f307b..dcf6230207b8bec220e96d6e8a21450dc90b0baa 100644 (file)
@@ -291,7 +291,7 @@ class RGWValidateKeystoneToken : public RGWHTTPClient {
 public:
   RGWValidateKeystoneToken(CephContext *_cct, bufferlist *_bl) : RGWHTTPClient(_cct), bl(_bl) {}
 
-  int read_data(void *ptr, size_t len) {
+  int receive_data(void *ptr, size_t len) {
     bl->append((char *)ptr, len);
     return 0;
   }
@@ -304,7 +304,7 @@ class RGWGetRevokedTokens : public RGWHTTPClient {
 public:
   RGWGetRevokedTokens(CephContext *_cct, bufferlist *_bl) : RGWHTTPClient(_cct), bl(_bl) {}
 
-  int read_data(void *ptr, size_t len) {
+  int receive_data(void *ptr, size_t len) {
     bl->append((char *)ptr, len);
     return 0;
   }