Skip to content
New issue

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

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

Already on GitHub? # to your account

Synchronized native AE calls to DLL #1220

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

lilgreenbird
Copy link
Contributor

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants