lib/resolve: produce() layers can generate answer, not just query
previously producers in overlay could only generate query or update the final answer - this required exported callbacks from iterate.c and specific processing. this wouldn’t work for negative cache, as it would be required to reimplement whole iterate layer for cached data the new workflow allows produce layers to generate answer instead, this answer is then consumed in the next step by the iterate module in unified fashion for all caches/generators
Showing
- lib/layer/iterate.c 2 additions, 11 deletionslib/layer/iterate.c
- lib/layer/iterate.h 10 additions, 11 deletionslib/layer/iterate.h
- lib/layer/itercache.c 47 additions, 82 deletionslib/layer/itercache.c
- lib/resolve.c 6 additions, 1 deletionlib/resolve.c
- lib/rplan.h 2 additions, 1 deletionlib/rplan.h
- modules/hints/hints.c 24 additions, 20 deletionsmodules/hints/hints.c
- tests/testdata/iter_cname_qnamecopy.rpl 1 addition, 1 deletiontests/testdata/iter_cname_qnamecopy.rpl
Please register or sign in to comment