bool GrpcRunner::DoOperation()

in e2e-examples/gcs/benchmark/grpc_runner.cc [186:198]


bool GrpcRunner::DoOperation(
    int thread_id, std::shared_ptr<StorageStubProvider> storage_stub_provider) {
  switch (parameters_.operation_type) {
    case OperationType::Read:
      return DoRead(thread_id, storage_stub_provider);
    case OperationType::RandomRead:
      return DoRandomRead(thread_id, storage_stub_provider);
    case OperationType::Write:
      return DoWrite(thread_id, storage_stub_provider);
    default:
      return false;
  }
}