check if cache is working?

classic Classic list List threaded Threaded
3 messages Options
remoe remoe
Reply | Threaded
Open this post in threaded view
|

check if cache is working?

How can one check the cache is working? After calling this:

osg::ref_ptr<osgEarth::Cache> cache = CacheFactory::create( cacheOptions );
osgEarth::Registry::instance()->setDefaultCache( cache );

I have a case with the following error:

[osgEarth]* [RocksDBCache] Database problem...attempting to repair...
[osgEarth]* [RocksDBCache] Failed to open or create cache bin at C:\Users\user\AppData\Local\app\cache

I want to get this error case and clear the cache database.

Thanks
Remo Eichenberger, Switzerland
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: check if cache is working?

Remo,
There's no way right now -- we could add a getStatus() method to return the error though. Can you open up a github issue?
Glenn Waldron / Pelican Mapping
remoe remoe
Reply | Threaded
Open this post in threaded view
|

Re: check if cache is working?

https://github.com/gwaldron/osgearth/issues/1474
Remo Eichenberger, Switzerland