[#273] service/audit: Add cache of head responses in PoR

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-23 16:39:51 +03:00 committed by Alex Vanin
parent 9212864f42
commit afb83c610c
2 changed files with 44 additions and 0 deletions

View file

@ -54,6 +54,9 @@ func (c *Context) checkStorageGroupPoR(ind int, sg *object.ID) {
continue
}
// update cache for PoR and PDP audit checks
c.updateHeadResponses(hdr)
if len(tzHash) == 0 {
tzHash = hdr.PayloadHomomorphicHash().Sum()
} else {