forked from MTSR/mapserver
Merge branch 'master' of https://github.com/thomasrudin-mt/mapserver
This commit is contained in:
commit
4c95e6daaf
@ -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) {
|
||||||
|
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user