Skip to content

PYTHON-378 - make NetworkTopologyStrategy consider rack placement#438

Merged
aholmberg merged 3 commits into
masterfrom
378
Nov 12, 2015
Merged

PYTHON-378 - make NetworkTopologyStrategy consider rack placement#438
aholmberg merged 3 commits into
masterfrom
378

Conversation

@aholmberg

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread cassandra/metadata.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What the thinking behind having the variables: ring_len and ring_len_range? They seem to be used once. Could the line they're used on be simplified to?

for i in range(len(ring)):
    pass

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I guessed it was vestigial from an earlier implementation of the algorithm. I can change. I thought I did (as I also noticed it), but must have backed it out in my own rework.

aholmberg added a commit that referenced this pull request Nov 12, 2015
PYTHON-378 - make NetworkTopologyStrategy consider rack placement
@aholmberg aholmberg merged commit 94d4d6f into master Nov 12, 2015
@aholmberg aholmberg deleted the 378 branch November 12, 2015 22:22
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