document incremental stuck fix bug

This commit is contained in:
NatureFreshMilk 2019-04-04 08:11:50 +02:00
parent ace90fe432
commit 5367d977f7

34
doc/stuck.md Normal file
View File

@ -0,0 +1,34 @@
# Stuck incremental rendering
In case the incremental rendering is stuck (a bug between 1.0.1 and 2.0.0)
NOTE: this is for the mapserver database, NOT the map database!
## Sqlite
Execute this command in the sqlite database (`sqlite3 ./mapserver.sqlite`)
```
update settings
set value = strftime('%s', 'now')
where key = 'last_mtime';
```
This will reset the current rendering time to now
## Postgres
For postgresql:
Enter the shell (for example):
```
psql -U postgres
```
And reset the current mtime
```
update settings
set value = floor(EXTRACT(EPOCH from now()) * 1000)
where key = 'last_mtime';
```