Make the compacts run sychronously instead of in a goroutine. Might be causing panics in the test suite

pull/17/head
Paul Dix 2013-10-17 20:27:36 -04:00
parent 27b62caa29
commit c161c494aa
1 changed files with 1 additions and 3 deletions

View File

@ -177,9 +177,7 @@ func (self *LevelDbDatastore) DeleteRangeOfSeries(database, series string, start
rangesToCompact = append(rangesToCompact, &levigo.Range{startKey, endKey})
}
for _, r := range rangesToCompact {
go func(r *levigo.Range) {
self.db.CompactRange(*r)
}(r)
self.db.CompactRange(*r)
}
return nil
}