]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
TestOSDMap: actually loop through the pools as intended
authorGreg Farnum <gfarnum@redhat.com>
Tue, 6 Jun 2017 22:29:15 +0000 (15:29 -0700)
committerSage Weil <sage@redhat.com>
Wed, 28 Jun 2017 14:52:49 +0000 (10:52 -0400)
Looks like this was meant to be a loop but (unlike the other tests)
just referred to a constant pool 0. Whoops!

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/test/osd/TestOSDMap.cc

index 0d8eec7b561d854c0fa7eddd5176437075ee8793..8eb12720e6dad81a87db81c89b8831aa4351b9ac 100644 (file)
@@ -365,7 +365,7 @@ TEST_F(OSDMapTest, PrimaryAffinity) {
       vector<int> any(n, 0);
       vector<int> first(n, 0);
       vector<int> primary(n, 0);
-      test_mappings(0, 10000, &any, &first, &primary);
+      test_mappings(pool, 10000, &any, &first, &primary);
       for (int i=0; i<n; ++i) {
        ASSERT_LT(0, any[i]);
        ASSERT_LT(0, first[i]);