(ctx smat.Context)
| 396 | } |
| 397 | |
| 398 | func iteratorCreateFunc(ctx smat.Context) (next smat.State, err error) { |
| 399 | c := ctx.(*smatContext) |
| 400 | ss, ssMirror, err := c.getCurSnapshot() |
| 401 | if err != nil { |
| 402 | return nil, err |
| 403 | } |
| 404 | iter, err := ss.StartIterator(nil, nil, IteratorOptions{}) |
| 405 | if err != nil { |
| 406 | return nil, err |
| 407 | } |
| 408 | smatLog(prefix, "iteratorCreate: %d\n", len(c.iterators)) |
| 409 | c.iterators = append(c.iterators, iter) |
| 410 | c.iteratorMirrors = append(c.iteratorMirrors, &mirrorIter{ss: ssMirror}) |
| 411 | return running, nil |
| 412 | } |
| 413 | |
| 414 | func iteratorCloseFunc(ctx smat.Context) (next smat.State, err error) { |
| 415 | c := ctx.(*smatContext) |
nothing calls this directly
no test coverage detected
searching dependent graphs…