]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't use boost::string_ref::to_string() method.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Wed, 12 Oct 2016 21:54:16 +0000 (23:54 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 21 Oct 2016 20:57:22 +0000 (22:57 +0200)
The method has been introduced in Boost 1.54. However,
some systems we are targeting (like CentOS 7) offer
older version of the library.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_client_io_filters.h

index f573af8eccaf4798fc9658b451ac848886402613..acf3b787426034b44727c990b424607d67247f0f 100644 (file)
@@ -339,8 +339,8 @@ protected:
     switch (phase) {
     case ReorderState::RGW_EARLY_HEADERS:
     case ReorderState::RGW_STATUS_SEEN:
-      headers.emplace_back(std::make_pair(name.to_string(),
-                                          value.to_string()));
+      headers.emplace_back(std::make_pair(std::string(name.data(), name.size()),
+                                          std::string(value.data(), value.size())));
       return 0;
     case ReorderState::RGW_DATA:
       return DecoratedRestfulClient<T>::send_header(name, value);