Commit fea6bccb authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: minor bugfixes

- Fixed a bug in the Filesink plugin that caused occasional crashes
- Fixed a bug in the Pusher REST API that prevented plugin reloads
for operators
parent e95764be
......@@ -70,7 +70,7 @@ void FilesinkOperator::compute(U_Ptr unit) {
_buffer = _queryEngine.querySensor(in->getName(), 0, 0, _buffer);
if(!_buffer || _buffer->empty())
LOG(error) << "Operator " + _name + ": cannot read from sensor " + in->getName() + "!";
if(!in->writeFile(_buffer->at(_buffer->size()-1)))
else if(!in->writeFile(_buffer->at(_buffer->size()-1)))
LOG(error) << "Operator " + _name + ": failed file write for sensor " << in->getName() << "!";
}
}
......
......@@ -471,7 +471,7 @@ void RestAPI::unloadQueryEngine() {
QueryEngine &qEngine = QueryEngine::getInstance();
// Locking access to the QueryEngine
qEngine.lock();
qEngine.setNavigator(nullptr);
//qEngine.setNavigator(nullptr);
qEngine.setSensorMap(nullptr);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment