]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rename RGWStreamIOBase to RGWStreamIOEngine.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 28 Jul 2016 10:59:10 +0000 (12:59 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 21 Oct 2016 20:57:17 +0000 (22:57 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_client_io.cc
src/rgw/rgw_client_io.h

index 3aa518fd992f0b5b2375f5f23c5b6b233ba66742..8d867765768db38a9437a369c8b37aa3b30d2f4b 100644 (file)
@@ -23,7 +23,7 @@ void RGWClientIO::init(CephContext *cct) {
 }
 
 
-int RGWStreamIOBase::print(const char *format, ...)
+int RGWStreamIOEngine::print(const char *format, ...)
 {
 #define LARGE_ENOUGH 128
   int size = LARGE_ENOUGH;
@@ -49,7 +49,7 @@ int RGWStreamIOBase::print(const char *format, ...)
   /* not reachable */
 }
 
-int RGWStreamIOBase::write(const char *buf, int len)
+int RGWStreamIOEngine::write(const char *buf, int len)
 {
   if (len == 0) {
     return 0;
@@ -66,7 +66,7 @@ int RGWStreamIOBase::write(const char *buf, int len)
   }
 }
 
-int RGWStreamIOBase::read(char *buf, int max, int *actual)
+int RGWStreamIOEngine::read(char *buf, int max, int *actual)
 {
   int ret = read_data(buf, max);
   if (ret < 0) {
@@ -80,7 +80,7 @@ int RGWStreamIOBase::read(char *buf, int max, int *actual)
 
 int RGWStreamIO::write(const char* const buf, const int len)
 {
-  const auto ret = RGWStreamIOBase::write(buf, len);
+  const auto ret = RGWStreamIOEngine::write(buf, len);
 
   if (ret >= 0 && account()) {
     bytes_sent += ret;
@@ -91,7 +91,7 @@ int RGWStreamIO::write(const char* const buf, const int len)
 
 int RGWStreamIO::read(char *buf, int max, int *actual)
 {
-  const auto ret = RGWStreamIOBase::read(buf, max, actual);
+  const auto ret = RGWStreamIOEngine::read(buf, max, actual);
   if (ret >= 0) {
     bytes_received += *actual;
   }
index e3e5e929d229d198ac20f0c5c67703a27bb7affd..1012ca0985b71809c75374892228ecc6d6f6cede 100644 (file)
@@ -34,7 +34,7 @@ public:
 }; /* RGWClient IO */
 
 
-class RGWStreamIOBase : public RGWClientIO {
+class RGWStreamIOEngine : public RGWClientIO {
   virtual int read_data(char *buf, int max) = 0;
   virtual int write_data(const char *buf, int len) = 0;
 public:
@@ -53,7 +53,7 @@ public:
 };
 
 /* HTTP IO: compatibility layer */
-class RGWStreamIO : public RGWStreamIOBase {
+class RGWStreamIO : public RGWStreamIOEngine {
   bool _account;
   size_t bytes_sent;
   size_t bytes_received;