mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-09 08:27:32 -04:00
It's a bit unclear whether the crypto-store generation counter is doing the right thing in terms of causing us to reload the OlmMachine. There is a suspicion that things might be keeping hold of references to the old OlmMachine. This PR attempts to add the generation number to the logging for any operations that hold the cross-process lock. It's obviously not bulletproof: for example, it is possible for the OlmMachine to be replaced without holding the lock; but hopefully this will at least help us understand what's going on.