1
0
forked from MTSR/mapserver
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() { func (this *TileDB) GC() {
for { this.db.RunValueLogGC(0.7)
err := this.db.RunValueLogGC(0.25)
if err != nil {
return
}
}
} }
func (this *TileDB) GetTile(pos *coords.TileCoords) ([]byte, error) { 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) jobs := make(chan *coords.TileCoords, ctx.Config.RenderingQueue)
done := make(chan bool, 1) 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) go worker(ctx, jobs, done)
} }
@ -33,7 +33,7 @@ func renderMapblocks(ctx *app.App, mblist []*mapblockparser.MapBlock) int {
//13 //13
fields := logrus.Fields{ fields := logrus.Fields{
"pos": mb.Pos, "pos": mb.Pos,
"prefix": "tilerenderjob", "prefix": "tilerenderjob",
} }
logrus.WithFields(fields).Debug("Tile render job mapblock") logrus.WithFields(fields).Debug("Tile render job mapblock")
@ -62,7 +62,7 @@ func renderMapblocks(ctx *app.App, mblist []*mapblockparser.MapBlock) int {
"Y": tc.Y, "Y": tc.Y,
"Zoom": tc.Zoom, "Zoom": tc.Zoom,
"LayerId": tc.LayerId, "LayerId": tc.LayerId,
"prefix": "tilerenderjob", "prefix": "tilerenderjob",
} }
logrus.WithFields(fields).Debug("Tile render job dispatch tile") logrus.WithFields(fields).Debug("Tile render job dispatch tile")