[Qgis-developer] QGIS Mapserver - automatic project reloading after change is not working on NFS

Ivan Mincik ivan.mincik at gmail.com
Mon Jan 19 02:39:26 PST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
Automatic reloading of QGIS project file is not working, if project file is
located on NFS or other network file system.

Reloading is implemented in 'src/server/qgsconfigcache.cpp' by
&mFileSystemWatcher which is using QFileSystemWatcher. The reason of this
behavior is, that QFileSystemWatcher depends on 'inotify' feature of Linux
kernel, which is not (and can't be) implemented in NFS.

Before trying to fix it by myself, I would like to ask others, for example
people from QGIS Cloud, how are you solving this problem without server
process restarting ?

I am thinking about adding some version variable to all QWS requests, which
will can be used by web application to request reloading of project file.

Thank you.


- -- 
Ivan Minčík
ivan.mincik at gmail.com   GPG: 0x79529A1E  http://imincik.github.io/0x79529A1E.key
ivan.mincik at gista.sk    GPG: 0xD714B02C  http://imincik.github.io/0xD714B02C.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJUvN7dAAoJEPfdLsR5UpoeFlEH/ira+KFqA/O0l4SIRprjtivn
b8QKSorE/m8GUvD8CdaX2Ct4jAk/fbXd0hXBHcpDmOE/Y9eCHFg5OmZbTjGfDB/g
zIg0zJ38NeYxq02fJfzAlkwQ7GFfy517IgEbl5LR4rFCa2XzqcV35pXR6HGDU0dJ
1fnbcBxChvGNDCpSafkVeqUun8MymISnqa8zzp14ZwqNc4Nz7x9RiOMZb3BUAIMb
JK+DEFQ40NWFWIktWHLOlB72K4kqgWptGrZ2zSYHMWWhG5jJTlJNXleIw+Qf+UBN
FhFKegEpOkslhEsg5rioPSnCDAWFPKk5fbuuaPI/h4VEK5v9p7mf4afYAxNDNu4=
=B7d+
-----END PGP SIGNATURE-----


More information about the Qgis-developer mailing list