Copy refs and comment on Value

This commit is contained in:
Barak Michener 2014-08-06 14:37:37 -04:00
parent cedaa9cdfa
commit 2bec255b52
2 changed files with 12 additions and 3 deletions

View file

@ -95,6 +95,12 @@ func (it *Materialize) TagResults(dst map[string]graph.Value) {
func (it *Materialize) Clone() graph.Iterator {
out := NewMaterialize(it.subIt.Clone())
out.tags.CopyFrom(it)
if it.hasRun {
out.hasRun = true
out.aborted = it.aborted
out.values = it.values
out.containsMap = it.containsMap
}
return out
}