func (s *StateStore) Allocs(ws memdb.WatchSet) (memdb.ResultIterator, error) {
	txn := s.db.Txn(false)

	// Walk the entire table
	iter, err := txn.Get("allocs", "id")
	if err != nil {
		return nil, err
	}

	ws.Add(iter.WatchCh())

	return iter, nil
}
// Allocs returns an iterator over all the evaluations
Allocs returns an iterator over all the evaluations
// Allocs returns an iterator over all the evaluations
func (s *StateStore) Allocs(ws memdb.WatchSet) (memdb.ResultIterator, error) {
	txn := s.db.Txn(false)
	iter, err := txn.Get("allocs", "id")
	if err != nil {
		return nil, err
	}
	ws.Add(iter.WatchCh())
	return iter, nil
}
func ( s * StateStore ) Allocs ( ws memdb . WatchSet ) ( memdb . ResultIterator , error ) { txn := s . db . Txn ( false ) iter , err := txn . Get ( " " , " " ) if err != nil { return nil , err } ws . Add ( iter . WatchCh ( ) ) return iter , nil }
Allocs returns an iterator over all the evaluations
Allocs returns an iterator over all the evaluations
// Walk the entire table