This commit is contained in:
NatureFreshMilk 2019-02-21 07:37:52 +01:00
commit 4c95e6daaf
2 changed files with 4 additions and 9 deletions

View File

@ -32,12 +32,7 @@ func getKey(pos *coords.TileCoords) []byte {
}
func (this *TileDB) GC() {
for {
err := this.db.RunValueLogGC(0.25)
if err != nil {
return
}
}
this.db.RunValueLogGC(0.7)
}
func (this *TileDB) GetTile(pos *coords.TileCoords) ([]byte, error) {

View File

@ -25,7 +25,7 @@ func renderMapblocks(ctx *app.App, mblist []*mapblockparser.MapBlock) int {
jobs := make(chan *coords.TileCoords, ctx.Config.RenderingQueue)
done := make(chan bool, 1)
for i := 0; i < ctx.Config.RenderingJobs; i++ {
for j := 0; j < ctx.Config.RenderingJobs; j++ {
go worker(ctx, jobs, done)
}
@ -33,7 +33,7 @@ func renderMapblocks(ctx *app.App, mblist []*mapblockparser.MapBlock) int {
//13
fields := logrus.Fields{
"pos": mb.Pos,
"pos": mb.Pos,
"prefix": "tilerenderjob",
}
logrus.WithFields(fields).Debug("Tile render job mapblock")
@ -62,7 +62,7 @@ func renderMapblocks(ctx *app.App, mblist []*mapblockparser.MapBlock) int {
"Y": tc.Y,
"Zoom": tc.Zoom,
"LayerId": tc.LayerId,
"prefix": "tilerenderjob",
"prefix": "tilerenderjob",
}
logrus.WithFields(fields).Debug("Tile render job dispatch tile")