func (s *StateStore) UpsertAllocs(index uint64, allocs []*structs.Allocation) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if err := s.upsertAllocsImpl(index, allocs, txn); err != nil {
		return err
	}
	txn.Commit()
	return nil
}
// UpsertAllocs is used to evict a set of allocations and allocate new ones at
// the same time.
UpsertAllocs is used to evict a set of allocations and allocate new ones at
the same time.
// UpsertAllocs is used to evict a set of allocations and allocate new ones at // the same time .
func (s *StateStore) UpsertAllocs(index uint64, allocs []*structs.Allocation) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if err := s.upsertAllocsImpl(index, allocs, txn); err != nil {
		return err
	}
	txn.Commit()
	return nil
}
func ( s * StateStore ) UpsertAllocs ( index uint64 , allocs [ ] * structs . Allocation ) error { txn := s . db . Txn ( true ) defer txn . Abort ( ) if err := s . upsertAllocsImpl ( index , allocs , txn ) ; err != nil { return err } txn . Commit ( ) return nil }
UpsertAllocs is used to evict a set of allocations and allocate new ones at
the same time.
UpsertAllocs is used to evict a set of allocations and allocate new ones at the same time .