Improve test suite, fix bug in Set.Global()

This commit is contained in:
Jakob Borg
2014-06-05 15:13:21 +02:00
parent f0612e57c2
commit 2e2185165c
2 changed files with 101 additions and 29 deletions

View File

@@ -297,6 +297,9 @@ func (m *Set) replace(cid uint, fs []scanner.File) {
if na != 0 {
// Someone had the file
f := m.files[nk]
f.Global = true
m.files[nk] = f
m.globalKey[n] = nk
m.globalAvailability[n] = na
} else {