-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(swingset): delete unused snapshots #3505
Commits on Jul 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 446a39c - Browse repository at this point
Copy the full SHA 446a39cView commit details -
refactor(swingset): move c.shutdown to caller of runSteps
runSteps didn't create it; its caller still has a reference
Configuration menu - View commit details
-
Copy full SHA for accec6a - Browse repository at this point
Copy the full SHA accec6aView commit details -
fix(swingset): delete unused snapshots
In addition to maintaining a mapping from vatID to snapshotID, vatKeeper maintains a reverse mapping. After `commitCrank()`, the kernel calls `vatWarehouse.pruneSnapshots()`, which 1. calls `kernelKeeper.getUnusedSnapshots()`, 2. tries to `snapStore.delete()` each of them, and 3. reports the results using `kernelKeeper.forgetUnusedSnapshots()`. fixes #3374
Configuration menu - View commit details
-
Copy full SHA for aaa84e3 - Browse repository at this point
Copy the full SHA aaa84e3View commit details -
feat(swingset): configurable snapshotPruneInterval (=20)
Pruning snapshots involves an O(n) query on the DB, so doing it on every crank seems expensive. refs #3374
Configuration menu - View commit details
-
Copy full SHA for 5e71fc0 - Browse repository at this point
Copy the full SHA 5e71fc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8984761 - Browse repository at this point
Copy the full SHA 8984761View commit details -
Configuration menu - View commit details
-
Copy full SHA for 479a264 - Browse repository at this point
Copy the full SHA 479a264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b0a4b0 - Browse repository at this point
Copy the full SHA 7b0a4b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1bc8f7 - Browse repository at this point
Copy the full SHA f1bc8f7View commit details -
chore(swingset): host commit() deletes snapshots
- makeSnapStoreIO is in swing-store-lmdb now - vatKeeper.saveSnapshot() prepares deletes - removeFromSnapshot() returns consumers.length - no more vatWarehouse.pruneSnapshots - no more snapshotPruneInterval - test-warehouse: use commit() - test-reload-snapshot: update imports
Configuration menu - View commit details
-
Copy full SHA for a5e23a2 - Browse repository at this point
Copy the full SHA a5e23a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c48c70 - Browse repository at this point
Copy the full SHA 9c48c70View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0493e5 - Browse repository at this point
Copy the full SHA f0493e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eddd61 - Browse repository at this point
Copy the full SHA 8eddd61View commit details -
refactor(swingset): static type for kvStore in vatKeeper
- getRequired() asserts that get() does not return undefined - fix addHelpers() return type by declaring arg type - where kvStore.get() is ensured by getKeys() or has(), mark the alternative with assert.fail().
Configuration menu - View commit details
-
Copy full SHA for 6991266 - Browse repository at this point
Copy the full SHA 6991266View commit details -
Configuration menu - View commit details
-
Copy full SHA for 561ec00 - Browse repository at this point
Copy the full SHA 561ec00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1578a5d - Browse repository at this point
Copy the full SHA 1578a5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3369f2e - Browse repository at this point
Copy the full SHA 3369f2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87ce0c1 - Browse repository at this point
Copy the full SHA 87ce0c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f34be9 - Browse repository at this point
Copy the full SHA 6f34be9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1f0150 - Browse repository at this point
Copy the full SHA e1f0150View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d5504b - Browse repository at this point
Copy the full SHA 0d5504bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce67061 - Browse repository at this point
Copy the full SHA ce67061View commit details -
test: move xsnap/snapstore integration test to solo
to avoid @agoric/xsnap in swing-store-lmdb devDependencies
Configuration menu - View commit details
-
Copy full SHA for 21a7a91 - Browse repository at this point
Copy the full SHA 21a7a91View commit details -
test(snapstore): re-save between prepare and commit delete
plus one more /etc/passwd test
Configuration menu - View commit details
-
Copy full SHA for 1b2050d - Browse repository at this point
Copy the full SHA 1b2050dView commit details