From: Samuel Just Date: Thu, 1 Feb 2024 21:00:55 +0000 (-0800) Subject: test/crush/crush.cc: s/NULL/nullptr/g X-Git-Tag: v19.3.0~57^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab2b62c12099027fe9147da1b50bae0c81a4cc3c;p=ceph-ci.git test/crush/crush.cc: s/NULL/nullptr/g Signed-off-by: Samuel Just --- diff --git a/src/test/crush/crush.cc b/src/test/crush/crush.cc index 1f53084a70a..16153f1692f 100644 --- a/src/test/crush/crush.cc +++ b/src/test/crush/crush.cc @@ -37,7 +37,7 @@ std::unique_ptr build_indep_map(CephContext *cct, int num_rack, int rootno; c->add_bucket(0, CRUSH_BUCKET_STRAW, CRUSH_HASH_RJENKINS1, - 5, 0, NULL, NULL, &rootno); + 5, 0, nullptr, nullptr, &rootno); c->set_item_name(rootno, "default"); map loc; @@ -115,7 +115,7 @@ protected: TEST_F(CRUSHTest, indep_toosmall) { std::unique_ptr c(build_indep_map(cct, 1, 3, 1)); vector<__u32> weight(c->get_max_devices(), 0x10000); - c->dump_tree(&cout, NULL); + c->dump_tree(&cout, nullptr); for (int x = 0; x < 100; ++x) { vector out; @@ -134,7 +134,7 @@ TEST_F(CRUSHTest, indep_toosmall) { TEST_F(CRUSHTest, indep_basic) { std::unique_ptr c(build_indep_map(cct, 3, 3, 3)); vector<__u32> weight(c->get_max_devices(), 0x10000); - c->dump_tree(&cout, NULL); + c->dump_tree(&cout, nullptr); for (int x = 0; x < 100; ++x) { vector out; @@ -158,7 +158,7 @@ TEST_F(CRUSHTest, indep_out_alt) { int num = 3*3*3; for (int i=0; idump_tree(&cout, NULL); + c->dump_tree(&cout, nullptr); // need more retries to get 9/9 hosts for x in 0..99 c->set_choose_total_tries(100); @@ -184,7 +184,7 @@ TEST_F(CRUSHTest, indep_out_contig) { int num = 3*3*3; for (int i=0; idump_tree(&cout, NULL); + c->dump_tree(&cout, nullptr); c->set_choose_total_tries(100); for (int x = 0; x < 100; ++x) { @@ -206,7 +206,7 @@ TEST_F(CRUSHTest, indep_out_progressive) { std::unique_ptr c(build_indep_map(cct, 3, 3, 3)); c->set_choose_total_tries(100); vector<__u32> tweight(c->get_max_devices(), 0x10000); - c->dump_tree(&cout, NULL); + c->dump_tree(&cout, nullptr); int tchanged = 0; for (int x = 1; x < 5; ++x) {