MCPcopy Create free account
hub / github.com/ceph/ceph / asok_request

Function asok_request

src/common/admin_socket_client.cc:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static std::string asok_request(int socket_fd, std::string request)
110{
111 ssize_t res = safe_send(socket_fd, request.c_str(), request.length() + 1);
112 if (res < 0) {
113 int err = res;
114 ostringstream oss;
115 oss << "safe_write(" << socket_fd << ") failed to write request code: "
116 << cpp_strerror(err);
117 return oss.str();
118 }
119 return "";
120}
121
122AdminSocketClient::
123AdminSocketClient(const std::string &path)

Callers 2

do_requestMethod · 0.85
dump_asok_metricsMethod · 0.85

Calls 5

safe_sendFunction · 0.85
cpp_strerrorFunction · 0.85
c_strMethod · 0.45
lengthMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected