resolve maybe uninitialized error (#19103)

This commit is contained in:
Akash Patel 2021-10-12 07:06:48 -04:00 committed by GitHub
parent d8d8901192
commit 8241a03d31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ class TaskSpecification : public MessageWrapper<rpc::TaskSpec> {
/// Field storing required placement resources. Initialized in constructor.
std::shared_ptr<ResourceSet> required_placement_resources_;
/// Cached scheduling class of this task.
SchedulingClass sched_cls_id_;
SchedulingClass sched_cls_id_ = 0;
/// Below static fields could be mutated in `ComputeResources` concurrently due to
/// multi-threading, we need a mutex to protect it.