[Minor] fixed broken tests due to wrong checking for observer updates

This commit is contained in:
Robert von Burg 2014-08-24 19:21:34 +02:00
parent b7a63c1c47
commit 7e4805be9c
1 changed files with 2 additions and 2 deletions

View File

@ -469,7 +469,7 @@ public abstract class AbstractTransaction implements StrolchTransaction {
}
private long updateObservers() {
if (isObserverUpdatesEnabled())
if (!isObserverUpdatesEnabled())
return 0L;
long observerUpdateStart = System.nanoTime();
@ -493,7 +493,7 @@ public abstract class AbstractTransaction implements StrolchTransaction {
}
private boolean isObserverUpdatesEnabled() {
return this.suppressUpdates || this.realm.isUpdateObservers();
return !this.suppressUpdates && this.realm.isUpdateObservers();
}
private long writeAuditTrail() {