func (s *StateStore) UpsertDeployment(index uint64, deployment *structs.Deployment) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if err := s.upsertDeploymentImpl(index, deployment, txn); err != nil {
		return err
	}
	txn.Commit()
	return nil
}
// UpsertDeployment is used to insert a new deployment. If cancelPrior is set to
// true, all prior deployments for the same job will be cancelled.
UpsertDeployment is used to insert a new deployment. If cancelPrior is set to
true, all prior deployments for the same job will be cancelled.
// UpsertDeployment is used to insert a new deployment . If cancelPrior is set to // true all prior deployments for the same job will be cancelled .
func (s *StateStore) UpsertDeployment(index uint64, deployment *structs.Deployment) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if err := s.upsertDeploymentImpl(index, deployment, txn); err != nil {
		return err
	}
	txn.Commit()
	return nil
}
func ( s * StateStore ) UpsertDeployment ( index uint64 , deployment * structs . Deployment ) error { txn := s . db . Txn ( true ) defer txn . Abort ( ) if err := s . upsertDeploymentImpl ( index , deployment , txn ) ; err != nil { return err } txn . Commit ( ) return nil }
UpsertDeployment is used to insert a new deployment.
UpsertDeployment is used to insert a new deployment .