]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_list: more fix LibRadosListNP.ListObjectsError 15138/head
authorSage Weil <sage@redhat.com>
Wed, 17 May 2017 15:55:42 +0000 (11:55 -0400)
committerSage Weil <sage@redhat.com>
Wed, 17 May 2017 15:55:42 +0000 (11:55 -0400)
Follow-on to d7e6e8d60309e4800389b36f786b633d0ca2ec07; we need to
make sure the client gets the updated osdmap.

Fixes: http://tracker.ceph.com/issues/19963
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/list.cc

index 54f4459b28d89316ccb6c5c3fbb98a4f7d1a0e2f..f3ca8107d9d99f809e687f35235e02798dd48275 100644 (file)
@@ -974,6 +974,7 @@ TEST_F(LibRadosListNP, ListObjectsError) {
       "\",\"sure\": \"--yes-i-really-really-mean-it-not-faking\"}";
     const char *cmd[2] = { c.c_str(), 0 };
     ASSERT_EQ(0, rados_mon_command(cluster, (const char **)cmd, 1, "", 0, &buf, &buflen, &st, &stlen));
+    ASSERT_EQ(0, rados_wait_for_latest_osdmap(cluster));
   }
 
   rados_list_ctx_t ctx;