Skip to content

Atomically create a new RiakBucket to avoid race condition in duplication#386

Merged
borshop merged 1 commit into
masterfrom
bugfig/bch/bucket-race-condition
Dec 18, 2014
Merged

Atomically create a new RiakBucket to avoid race condition in duplication#386
borshop merged 1 commit into
masterfrom
bugfig/bch/bucket-race-condition

Conversation

@hazen
Copy link
Copy Markdown

@hazen hazen commented Dec 18, 2014

Use the Python built-in dict.setdefault() to check for the existence of the bucket in the client bucket list and add if if it does not exist. This addresses issue #380 (CLIENTS-53)

@seancribbs
Copy link
Copy Markdown

👍 f944a8b

borshop added a commit that referenced this pull request Dec 18, 2014
Atomically create a new RiakBucket to avoid race condition in duplication

Reviewed-by: seancribbs
@seancribbs
Copy link
Copy Markdown

@borshop merge

@borshop borshop merged commit f944a8b into master Dec 18, 2014
@hazen hazen deleted the bugfig/bch/bucket-race-condition branch December 18, 2014 18:50
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.

3 participants