Browse Source

Fix mysql transaction rollback bug(#598)

master
xiangxiren 4 years ago
committed by GitHub
parent
commit
0301a7b21a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs

+ 2
- 2
src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs View File

@@ -45,7 +45,7 @@ namespace Microsoft.EntityFrameworkCore.Storage

public Task RollbackAsync(CancellationToken cancellationToken = default)
{
return _transaction.CommitAsync(cancellationToken);
return _transaction.RollbackAsync(cancellationToken);
}

public ValueTask DisposeAsync()
@@ -54,4 +54,4 @@ namespace Microsoft.EntityFrameworkCore.Storage
return new ValueTask();
}
}
}
}

Loading…
Cancel
Save