startTask is used for the tasks that do not require tracking of timestamp. Currently, only the timestamps for backup and indexing needs to be tracked because they can run concurrently.
(id op)
| 104 | // Currently, only the timestamps for backup and indexing needs to be tracked because they can |
| 105 | // run concurrently. |
| 106 | func (n *node) startTask(id op) (*z.Closer, error) { |
| 107 | return n.startTaskAtTs(id, 0) |
| 108 | } |
| 109 | |
| 110 | // startTaskAtTs is used to check whether an op is already running. If a rollup is running, |
| 111 | // it is canceled and startTask will wait until it completes before returning. |
no test coverage detected