Skip to content
Snippets Groups Projects
Commit b1f85eb7 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

Revert "fix #196: logic_error due to backwards counting VersionNumber"

This reverts commit a80ebc2d.

This was the wrong approach, see ChimeraTK/DeviceAccess-DoocsBackend#45
parent e6987ae7
No related branches found
No related tags found
No related merge requests found
...@@ -149,16 +149,7 @@ namespace ChimeraTK { ...@@ -149,16 +149,7 @@ namespace ChimeraTK {
} }
else { else {
_dataValidity = _target->dataValidity(); _dataValidity = _target->dataValidity();
_versionNumber = _target->getVersionNumber();
// Only update version number if not smaller than the current one. If the current one is originating from
// _deviceModule->getExceptionVersionNumber(), it might happen that the intial value after recovery has the same
// version as the last value before the exception, which is smaller than the exception version number.
if(_target->getVersionNumber() >= _versionNumber) {
_versionNumber = _target->getVersionNumber();
}
else {
assert(_target->getVersionNumber() < _deviceModule->getExceptionVersionNumber());
}
} }
// only replace the user buffer if there really is new data // only replace the user buffer if there really is new data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment