MCPcopy Create free account
hub / github.com/apache/brpc / Run

Method Run

test/brpc_redis_cluster_unittest.cpp:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183class AskingHandler : public brpc::RedisCommandHandler {
184public:
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
198class ClusterCommandHandler : public brpc::RedisCommandHandler {

Callers

nothing calls this directly

Calls 2

GetOrCreateSessionFunction · 0.85
SetStatusMethod · 0.80

Tested by

no test coverage detected