hundreds-breakfast-49010
03/09/2020, 6:06 PMhundreds-breakfast-49010
03/09/2020, 6:07 PMhundreds-breakfast-49010
03/09/2020, 6:07 PMaloof-angle-91616
03/09/2020, 6:07 PMaloof-angle-91616
03/09/2020, 6:09 PMaloof-angle-91616
03/09/2020, 6:09 PMaloof-angle-91616
03/09/2020, 6:09 PMaverage-vr-56795
03/09/2020, 6:39 PMaverage-vr-56795
03/09/2020, 6:39 PMaverage-vr-56795
03/09/2020, 6:40 PMaverage-vr-56795
03/09/2020, 6:40 PMaverage-vr-56795
03/09/2020, 6:41 PMhundreds-breakfast-49010
03/09/2020, 6:45 PMaverage-vr-56795
03/09/2020, 6:46 PMaverage-vr-56795
03/09/2020, 6:46 PMhundreds-breakfast-49010
03/09/2020, 6:50 PMhundreds-breakfast-49010
03/09/2020, 6:50 PMaverage-vr-56795
03/09/2020, 6:50 PMaverage-vr-56795
03/09/2020, 6:50 PMaloof-angle-91616
03/09/2020, 6:51 PMaverage-vr-56795
03/09/2020, 6:53 PMShardedLmdb
constructor, you’re looking at the Some("content")
and Some("leases")
argumentsaverage-vr-56795
03/09/2020, 6:53 PMhundreds-breakfast-49010
03/09/2020, 6:57 PMaloof-angle-91616
03/09/2020, 7:00 PMhundreds-breakfast-49010
03/09/2020, 7:00 PMhundreds-breakfast-49010
03/09/2020, 7:00 PMhundreds-breakfast-49010
03/09/2020, 7:00 PMaloof-angle-91616
03/09/2020, 7:01 PMhundreds-breakfast-49010
03/09/2020, 7:01 PMhundreds-breakfast-49010
03/09/2020, 7:02 PMShardedLmdb
object on CommandRunner
, just for platforms?aloof-angle-91616
03/09/2020, 7:03 PMaloof-angle-91616
03/09/2020, 7:04 PMstore
crate instead of making a new one in the process_execution crate itselfhundreds-breakfast-49010
03/09/2020, 7:06 PMStore
is meant to store file contents it looks like. is it adaptable to store the new Platform
type?hundreds-breakfast-49010
03/09/2020, 7:07 PM<http://cache.rs|cache.rs>
CommandRunner
we pass in a ShardedLmdb
to the new
methodhundreds-breakfast-49010
03/09/2020, 8:09 PMlmdb
create used in sharded_lmdb
to the latest version of https://crates.io/crates/lmdb results in some API changes around cloning the env
aloof-angle-91616
03/09/2020, 8:10 PMaloof-angle-91616
03/09/2020, 8:10 PMaloof-angle-91616
03/09/2020, 8:11 PMhundreds-breakfast-49010
03/09/2020, 8:12 PMEnvironmentCopyFlags
typehundreds-breakfast-49010
03/09/2020, 8:12 PMhundreds-breakfast-49010
03/09/2020, 8:12 PM<http://context.rs|context.rs>
hundreds-breakfast-49010
03/09/2020, 8:13 PMaloof-angle-91616
03/09/2020, 8:13 PMaloof-angle-91616
03/09/2020, 8:13 PMhundreds-breakfast-49010
03/09/2020, 8:13 PMShardedLmdb
?hundreds-breakfast-49010
03/09/2020, 8:13 PMhundreds-breakfast-49010
03/09/2020, 8:14 PM~/.cache/pants/lmdb_store
hundreds-breakfast-49010
03/09/2020, 8:14 PMaloof-angle-91616
03/09/2020, 8:14 PMaloof-angle-91616
03/09/2020, 8:15 PMhundreds-breakfast-49010
03/09/2020, 8:15 PMaloof-angle-91616
03/09/2020, 8:16 PMhundreds-breakfast-49010
03/09/2020, 8:16 PMaloof-angle-91616
03/09/2020, 8:16 PMhundreds-breakfast-49010
03/09/2020, 8:17 PMPlatform
parameter in the existing ShardedLmdb
hundreds-breakfast-49010
03/09/2020, 8:17 PMhundreds-breakfast-49010
03/09/2020, 8:18 PMstore
and load
in <http://cache.rs|cache.rs>
are just gonna fail sometimes if they read an older entry or can't properly deserialize one from bytesaloof-angle-91616
03/09/2020, 8:18 PMaloof-angle-91616
03/09/2020, 8:18 PMhundreds-breakfast-49010
03/09/2020, 8:19 PMExecuteResponse
hundreds-breakfast-49010
03/09/2020, 8:20 PMlookup
function there to try to deserialize the new version of the type - with a Platform
on it - from the raw Bytes
we store in lmdb, and just return None if it can't, same as if there was just no cache entry for this yethundreds-breakfast-49010
03/09/2020, 8:21 PMhundreds-breakfast-49010
03/09/2020, 8:21 PMhundreds-breakfast-49010
03/09/2020, 8:21 PMaverage-vr-56795
03/10/2020, 10:28 AMaverage-vr-56795
03/10/2020, 10:28 AMaverage-vr-56795
03/10/2020, 10:29 AMaverage-vr-56795
03/10/2020, 10:30 AMaverage-vr-56795
03/10/2020, 10:32 AMhundreds-breakfast-49010
03/10/2020, 4:50 PMaverage-vr-56795
03/10/2020, 4:51 PMaverage-vr-56795
03/10/2020, 4:52 PMhundreds-breakfast-49010
03/10/2020, 4:52 PMhundreds-breakfast-49010
03/10/2020, 4:53 PMaverage-vr-56795
03/10/2020, 4:53 PMhundreds-breakfast-49010
03/10/2020, 4:54 PMSCHEMA_VERSION
in the sharded_lmdb
code and hashing that integer into something that can be XOR'd with the 32 bytes of the existing Fingerprint
seem reasonable?average-vr-56795
03/10/2020, 4:55 PMhundreds-breakfast-49010
03/10/2020, 4:55 PMhundreds-breakfast-49010
03/10/2020, 4:56 PMaverage-vr-56795
03/10/2020, 4:56 PMaverage-vr-56795
03/10/2020, 4:56 PMhundreds-breakfast-49010
03/10/2020, 4:56 PM