-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(swingset): track vat deliveryNum persistently
Previously, the concept of "deliveryNum" (a counter of how many deliveries have been made to any particular vat) only existed within the slogger, which used an internal (ephemeral) counter, and attached the count to each slogfile delivery record. That meant two successive slogfiles, created by two successive launches of the same kernel (one building upon the saved state of the other), would get overlapping delivery numbers. The problem would get worse with the #2277 VatWarehouse, which will create a new `vatSlogger` each time the vat is paged in (multiple times per kernel process). This moves the `deliveryNum` counter into the kernelDB's durable `kvStore`, in a new `$vatID.nextDeliveryNum` key. It is incremented for each delivery by `deliverAndLogToVat()`. The slogger simply receives and remembers `deliveryNum` (just like what it's always done with `crankNum`), and no longer attempts to increment a counter itself. closes #3254
- Loading branch information
Showing
8 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters