MCPcopy Create free account
hub / github.com/acl-dev/acl / get_result

Method get_result

lib_acl_cpp/src/redis/redis_client_pipeline.cpp:193–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193const redis_result* redis_pipeline_channel::get_result(socket_stream& conn,
194 redis_pipeline_message& msg) const
195{
196 dbuf_pool* dbuf = msg.get_dbuf();
197 assert(dbuf);
198
199 const int* timeout = msg.get_timeout();
200 if (timeout) {
201 conn.set_rw_timeout(*timeout);
202 }
203
204 const redis_result* result;
205 size_t nchild = msg.get_nchild();
206 if (nchild >= 1) {
207 result = client_->get_objects(conn, dbuf, nchild);
208 } else {
209 result = client_->get_object(conn, dbuf);
210 }
211
212 if (result == NULL) {
213 logger_error("Can't get result");
214 return NULL;
215 }
216
217 return result;
218}
219
220bool redis_pipeline_channel::handle_result(redis_pipeline_message* msg,
221 const redis_result* result) const

Callers

nothing calls this directly

Calls 4

get_dbufMethod · 0.80
set_rw_timeoutMethod · 0.80
get_objectsMethod · 0.45
get_objectMethod · 0.45

Tested by

no test coverage detected