Skip to content

Commit

Permalink
Make SendDataset take full dataset name
Browse files Browse the repository at this point in the history
  • Loading branch information
vansante committed Apr 30, 2024
1 parent de937d9 commit 2949eb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions job/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,11 @@ func (r *Runner) ListCurrentSends() []ZFSSend {
}

// SendDataset can be used to trigger send for a specific dataset.
// Should be just the path from the parent dataset to the dataset to be sent.
// Do not include the snapshot part of the dataset.
// Blocking call, will block until one of the send goroutines has picked
// up the call. If sending is disabled, will block forever.
func (r *Runner) SendDataset(dataset string) {
r.sendChan <- r.fullDatasetName(dataset)
r.sendChan <- dataset
}

func (r *Runner) runCreateSnapshots() {
Expand Down

0 comments on commit 2949eb5

Please sign in to comment.