Coverity 72944

This commit is contained in:
Sebastian Stenzel
2016-03-04 17:45:33 +01:00
parent f70d486462
commit 8b717993ed
@@ -158,7 +158,7 @@ class ExclusiveSharedLockManager implements LockManager {
}
// or otherwise look for parent locks:
if (locator.parent().isPresent()) {
return getLockInternal(type, scope, locator.parent().get(), depth++);
return getLockInternal(type, scope, locator.parent().get(), depth + 1);
} else {
return null;
}