| 183 | class AskingHandler : public brpc::RedisCommandHandler { |
| 184 | public: |
| 185 | brpc::RedisCommandHandlerResult Run(brpc::RedisConnContext* ctx, |
| 186 | const std::vector<butil::StringPiece>& /*args*/, |
| 187 | brpc::RedisReply* output, |
| 188 | bool /*flush_batched*/) override { |
| 189 | Session* s = GetOrCreateSession(ctx); |
| 190 | if (s != NULL) { |
| 191 | s->asking = true; |
| 192 | } |
| 193 | output->SetStatus("OK"); |
| 194 | return brpc::REDIS_CMD_HANDLED; |
| 195 | } |
| 196 | }; |
| 197 | |
| 198 | class ClusterCommandHandler : public brpc::RedisCommandHandler { |
nothing calls this directly
no test coverage detected