summaryrefslogtreecommitdiff
path: root/net-fs/cvmfs/files/cvmfs-2.12.7-protobuf.patch
blob: 29e5dfc17234d3407ff91e0d0e8f978fdf642295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

 Fix build with protobuf >= 30
 https://protobuf.dev/support/migration/#string_view-return-type

--- a/cvmfs/cache_extern.cc
+++ b/cvmfs/cache_extern.cc
@@ -538,7 +538,7 @@ void *ExternalCacheManager::MainRead(void *data) {
       continue;
     } else {
       PANIC(kLogSyslogErr | kLogDebug, "unexpected message %s",
-            msg->GetTypeName().c_str());
+            msg->GetTypeName().data());
     }
 
     RpcInFlight rpc_inflight;
diff --git a/cvmfs/cache_plugin/channel.cc b/cvmfs/cache_plugin/channel.cc
index 4c52d7604..e74d3aa8a 100644
--- a/cvmfs/cache_plugin/channel.cc
+++ b/cvmfs/cache_plugin/channel.cc
@@ -550,7 +550,7 @@ bool CachePlugin::HandleRequest(int fd_con) {
   } else {
     LogCvmfs(kLogCache, kLogSyslogErr | kLogDebug,
              "unexpected message from client: %s",
-             msg_typed->GetTypeName().c_str());
+             msg_typed->GetTypeName().data());
     return false;
   }