server side rollback now do rollback only if there is a operation active, otherwise does nothing
@@ -1334,9 +1334,9 @@ public final class OConnectionBinaryExecutor implements OBinaryRequestExecutor {
@Override
public OBinaryResponse executeRollback(ORollbackTransactionRequest request) {
ODatabaseDocumentInternal database = connection.getDatabase();
- if (!database.getTransaction().isActive())
- throw new ODatabaseException("No Transaction Active");
+ if (database.getTransaction().isActive()) {
database.rollback(true);
+ }
return new ORollbackTransactionResponse();
}
