made indexAll and retagAll atomic and faster

This commit is contained in:
ston1th 2019-08-27 21:36:35 +02:00
commit 5649acf6a8
6 changed files with 131 additions and 64 deletions

View file

@ -18,8 +18,10 @@ const (
const blevePath = "bleve"
type DB struct {
store store.Store
Index *index.Index
rm countMutex
IndexMutex countMutex
store store.Store
Index *index.Index
}
func New(cfg core.Config) (db *DB, err error) {