| 385 | } |
| 386 | |
| 387 | void TaskNode::UpdateTaskId() { |
| 388 | CHECK_NE(machine_id_, -1); |
| 389 | CHECK_NE(thrd_id_, -1); |
| 390 | StreamId stream_id = DecodeStreamIdFromInt64(thrd_id_); |
| 391 | new_task_id_.reset( |
| 392 | new TaskId(Singleton<IDMgr>::Get()->GetTaskIdGenerator()->Generate(stream_id))); |
| 393 | task_id_ = EncodeTaskIdToInt64(*new_task_id_); |
| 394 | } |
| 395 | |
| 396 | void TaskNode::update_new_task_id(const TaskId& task_id) { |
| 397 | CHECK(static_cast<bool>(new_task_id_)); |
nothing calls this directly
no test coverage detected