| 191 | } |
| 192 | |
| 193 | const 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 | |
| 220 | bool redis_pipeline_channel::handle_result(redis_pipeline_message* msg, |
| 221 | const redis_result* result) const |
nothing calls this directly
no test coverage detected