Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronized native AE calls to DLL #1220

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

lilgreenbird
Copy link
Member

fixes issue when multiple threads calls AE methods

@rene-ye rene-ye added this to the 8.2.0 milestone Jan 2, 2020
byte[] encryptedColumnEncryptionKey) throws DLLException;

static native boolean VerifyColumnMasterKeyMetadata(String keyPath, boolean allowEnclaveComputations,
static synchronized native boolean VerifyColumnMasterKeyMetadata(String keyPath, boolean allowEnclaveComputations,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do both these functions call the same problematic handle getter? If so, don't we need to prevent both of them from calling the dll function at the same time? Might need an Object lock here instead of synchronized functions.

@rene-ye rene-ye merged commit ee2708e into microsoft:dev Jan 9, 2020
ulvii pushed a commit that referenced this pull request Mar 3, 2020
@lilgreenbird lilgreenbird added this to Closed/Merged PRs in MSSQL JDBC Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
MSSQL JDBC
  
Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

None yet

3 participants