keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.88k stars 1.23k forks source link

kbfs: don't start archiver bg goroutines until SFS is initialized #27081

Closed strib closed 3 months ago

strib commented 3 months ago

If the archiver starts making SFS calls before the MDOps instance is set in the config (which happens during an asynchronous init process), it could try to lookup TLF handles and IDs too early, resulting in it thinking it needs to create new TLFs over existing TLFs.

Instead just wait for that part of init to finish with a dumb loop.