aerc/worker/maildir
wagner riffel 55ae3d2cab maildir: fix data race in maildir worker
Fix a data race due dirInfo pointer being read in the main goroutine
by NewMessageStore and written in the anonymous goroutine launched in
Worker.getDirectoryInfo.

To address the issue raised in https://todo.sr.ht/~rjarry/aerc/16, we
use readdir(3) once, parse and cache its results, this replaces
go-maildir library Dir.Flags based  stat(3) and filepath.Glob
causing the issue when N (emails) is large.

Signed-off-by: wagner riffel <w@104d.net>
2022-03-07 10:01:53 +01:00
..
container.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
message.go maildir,notmuch: avoid leaking open files 2022-01-19 20:18:00 +01:00
search.go maildir,notmuch: avoid leaking open files 2022-01-19 20:18:00 +01:00
worker.go maildir: fix data race in maildir worker 2022-03-07 10:01:53 +01:00