diff --git a/presto-native-execution/presto_cpp/main/PrestoTask.h b/presto-native-execution/presto_cpp/main/PrestoTask.h index e96880c15a3a0..ff65d6274fac9 100644 --- a/presto-native-execution/presto_cpp/main/PrestoTask.h +++ b/presto-native-execution/presto_cpp/main/PrestoTask.h @@ -68,12 +68,12 @@ struct ResultRequest { struct PrestoTask { const PrestoTaskId id; std::shared_ptr task; - bool taskStarted = false; + bool taskStarted{false}; uint64_t lastHeartbeatMs{0}; mutable std::mutex mutex; // Error before task is created or when task is being created. - std::exception_ptr error = nullptr; + std::exception_ptr error{nullptr}; // Contains state info but is never returned. protocol::TaskInfo info;