MCPcopy Create free account
hub / github.com/baidu/tera / sdk_batch_write_callback

Function sdk_batch_write_callback

src/benchmark/mark.cc:280–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void sdk_batch_write_callback(tera::BatchMutation* batch_mu) {
281 Context* ctx = (Context*)batch_mu->GetContext();
282 Adapter* adapter = ctx->adapter;
283 size_t req_size = ctx->size;
284 int64_t req_time = ctx->time;
285 adapter->BatchWriteCallback(batch_mu, req_size, req_time);
286 delete ctx;
287}
288
289void Adapter::BatchWrite(int opt, const std::string& row,
290 std::map<std::string, std::set<std::string> >& column, uint64_t timestamp,

Callers

nothing calls this directly

Calls 2

BatchWriteCallbackMethod · 0.80
GetContextMethod · 0.45

Tested by

no test coverage detected