Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

include index in VBucket constructor #3

Merged
merged 1 commit into from

2 participants

saakshimanocha John Zablocki
saakshimanocha

Since there is no constructor of VBucket that takes 2 arguments, so adding index while initializing VBucket.

saakshimanocha saakshimanocha There is no constructor of VBucket that takes two arguments, so addin…
…g index as a third parameter to the VBucket initialize statement.
577bb5d
John Zablocki jzablocki merged commit 327139f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 30, 2012
  1. saakshimanocha

    There is no constructor of VBucket that takes two arguments, so addin…

    saakshimanocha authored
    …g index as a third parameter to the VBucket initialize statement.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 7 deletions.
  1. +7 −7 MemcachedTest/VBucketTest.cs
14 MemcachedTest/VBucketTest.cs
View
@@ -25,13 +25,13 @@ class VBucketTest
};
// copied from libvbucket
- VBucket[] buckets = new[]
- {
- new VBucket(0, new [] { 1, 2 }),
- new VBucket(1, new [] { 2, 0 }),
- new VBucket(2, new [] { 1, -1 }),
- new VBucket(1, new [] { 2, 0 }),
- };
+ private VBucket[] buckets = new[]
+ {
+ new VBucket(0, new[] {1, 2}, 0),
+ new VBucket(1, new[] {2, 0}, 1),
+ new VBucket(2, new[] {1, -1}, 2),
+ new VBucket(1, new[] {2, 0}, 3)
+ };
[TestCase]
public void TestBuckets()
Something went wrong with that request. Please try again.