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

Fix for Bulk Update always using the default schema for the update target table #6

Merged
merged 5 commits into from
Feb 8, 2018
Merged

Fix for Bulk Update always using the default schema for the update target table #6

merged 5 commits into from
Feb 8, 2018

Conversation

RudeySH
Copy link
Owner

@RudeySH RudeySH commented Feb 8, 2018

Oursler, Jeremy and others added 5 commits October 23, 2015 14:58
Fixed missing schema addressing in SqlQueryProvider.UpdateItems<T> by adding schema to the string.format to build the update statement
…e name if the command is executed fast enough.
If 2 threads reached if (!cache.TryGetValue(type, out mapping)) before an item was added to the cache both threads would then try to add the item to the cache causing the second to fail.
By adding a lock and a second TryGetValue we can prevent this by allowing the first thread to successfully add the item to cache then release the lock.
When the second thread is no longer blocked it will do a TryGetValue and retrieve the value from cache.
@RudeySH RudeySH merged commit 8dc3b6e into RudeySH:master Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants