Skip to content

Commit

Permalink
Issue #9344 has been fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Aug 3, 2020
1 parent 4943965 commit 5969c27
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static com.orientechnologies.orient.core.config.OGlobalConfiguration.FILE_DELETE_RETRY;
import static com.orientechnologies.orient.core.config.OGlobalConfiguration.WARNING_DEFAULT_USERS;


import com.orientechnologies.common.concur.lock.OModificationOperationProhibitedException;
import com.orientechnologies.common.exception.OException;
import com.orientechnologies.common.io.OIOUtils;
Expand Down Expand Up @@ -1008,6 +1009,18 @@ public synchronized void initCustomStorage(
}
}

@Override
public void rollbackOperationsFromThread(final Thread thread) {
synchronized (this) {
final Thread currentThread = Thread.currentThread();

for (final OAbstractPaginatedStorage storage : storages.values()) {
storage.rollbackOperationsFromThread(thread);
}
}
}


public synchronized void removeShutdownHook() {
orient.removeOrientDB(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,8 @@ default OResultSet executeServerStatement(
String script, String user, String pw, Object... params) {
throw new UnsupportedOperationException();
}

default void rollbackOperationsFromThread(final Thread thread) {
throw new UnsupportedOperationException();
}
}
Loading

0 comments on commit 5969c27

Please sign in to comment.