mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
415adfbae6
Since iterators must be released before committing or discarding a transaction we have the pattern of both deferring a release plus doing it manually. But we can't release twice because we track this with a WaitGroup that will panic when there are more Done()s than Add()s. This just adds a boolean to let an iterator keep track. |
||
---|---|---|
.. | ||
backend_test.go | ||
backend.go | ||
badger_backend.go | ||
badger_test.go | ||
debug.go | ||
leveldb_backend.go | ||
leveldb_open.go | ||
leveldb_test.go |