Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtSimplePirServer.UpdateHintRow

procedure UpdateHintRow(aRowIndex: Integer);
Recomputes one row of the hint, bumps the version and clears THAT ROW's mark, which is what lets a changed record be pushed to a client that already holds a hint. The client REPLACES that row; it is not a delta.

ONE RECORD IS LimbCount ROWS, SO PUSHING ONE IS LimbCount CALLS AND LimbCount BUMPS. Every version between the first call and the last names a hint that describes no table this server ever held, and a client offered one of them would MATCH on it, because a moved version is all the version check asks for. What stops that exchange is the row marks rather than the version: a write marks LimbCount rows, this clears one, and Answer refuses while any is outstanding - 'a row push that stopped one row short is refused, although the version moved 28 times on the way'. Push every row of a record before answering; the count of what is outstanding is what the refusal names.

IT SEALS THE DIGEST WHEN NOTHING IS LEFT OUTSTANDING and releases it while something is, which is once per PUSH and not once per row: the intermediate calls of a record's push each leave rows behind them and pay nothing, and the call that leaves none pays one pass. At the catalogue's own shape - 7,168 records of 8,192 octets, where LimbCount is 7,282 and one pass over the hint measured 152 ms - a push of one record pays that 152 ms once, where retaking it per row would pay 7,282 passes and releasing it would pay one inside the first Answer that followed. That last is what this used to do, and it is the write this seal removes: 'the stamp a completed row push leaves is the stamp of the hint the push LEFT, although nothing had read it when the hint was written through'.

A CALL THAT CLEARS NO MARK SEALS ALL THE SAME, because it too leaves a hint that answers: the count does not cross zero for a row nothing marked, and the rule is that the count IS zero afterwards. Such a call pays a pass of its own - 'a hint row recomputed with nothing outstanding seals the stamp too, although no mark crossed zero for it'. Pushing the rows of a record that PutRecord wrote, which is what this exists for, pays exactly one however many rows it has.