summaryrefslogtreecommitdiffstats
path: root/src/test/crush
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-04-03 16:19:07 +0200
committerGitHub <noreply@github.com>2021-04-03 16:19:07 +0200
commit889d850ba6f3143eeea096e36d0acf2d7e2c1b05 (patch)
tree2ab2241ffca775e8f77dc817f22fa01a2fab329a /src/test/crush
parentMerge pull request #38258 from badone/wip-tracker-48336-monmaptool-enforce-ip... (diff)
parentcrush/CrushCompiler: print weight with uniform precision (diff)
downloadceph-889d850ba6f3143eeea096e36d0acf2d7e2c1b05.tar.xz
ceph-889d850ba6f3143eeea096e36d0acf2d7e2c1b05.zip
Merge pull request #38500 from pdvian/wip-print-weight
crush/CrushCompiler: print weight with uniform precision Reviewed-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test/crush')
-rw-r--r--src/test/crush/crush-choose-args-expected-one-more-0.txt18
-rw-r--r--src/test/crush/crush-choose-args-expected-one-more-3.txt18
-rwxr-xr-xsrc/test/crush/crush_weights.sh12
3 files changed, 24 insertions, 24 deletions
diff --git a/src/test/crush/crush-choose-args-expected-one-more-0.txt b/src/test/crush/crush-choose-args-expected-one-more-0.txt
index bad7f0becfe..e52f43a7469 100644
--- a/src/test/crush/crush-choose-args-expected-one-more-0.txt
+++ b/src/test/crush/crush-choose-args-expected-one-more-0.txt
@@ -29,18 +29,18 @@ type 11 root
# buckets
host HOST {
id -2 # do not change unnecessarily
- # weight 6.000
+ # weight 6.00000
alg straw2
hash 0 # rjenkins1
- item osd.0 weight 3.000
- item osd.1 weight 3.000
+ item osd.0 weight 3.00000
+ item osd.1 weight 3.00000
}
root default {
id -1 # do not change unnecessarily
- # weight 6.000
+ # weight 6.00000
alg straw2
hash 0 # rjenkins1
- item HOST weight 6.000
+ item HOST weight 6.00000
}
# rules
@@ -59,16 +59,16 @@ choose_args 0 {
{
bucket_id -1
weight_set [
- [ 2.000 ]
- [ 1.000 ]
+ [ 2.00000 ]
+ [ 1.00000 ]
]
ids [ -10 ]
}
{
bucket_id -2
weight_set [
- [ 2.000 0.000 ]
- [ 1.000 0.000 ]
+ [ 2.00000 0.00000 ]
+ [ 1.00000 0.00000 ]
]
ids [ -20 1 ]
}
diff --git a/src/test/crush/crush-choose-args-expected-one-more-3.txt b/src/test/crush/crush-choose-args-expected-one-more-3.txt
index 14525853950..295fe859830 100644
--- a/src/test/crush/crush-choose-args-expected-one-more-3.txt
+++ b/src/test/crush/crush-choose-args-expected-one-more-3.txt
@@ -29,18 +29,18 @@ type 11 root
# buckets
host HOST {
id -2 # do not change unnecessarily
- # weight 6.000
+ # weight 6.00000
alg straw2
hash 0 # rjenkins1
- item osd.0 weight 3.000
- item osd.1 weight 3.000
+ item osd.0 weight 3.00000
+ item osd.1 weight 3.00000
}
root default {
id -1 # do not change unnecessarily
- # weight 6.000
+ # weight 6.00000
alg straw2
hash 0 # rjenkins1
- item HOST weight 6.000
+ item HOST weight 6.00000
}
# rules
@@ -59,16 +59,16 @@ choose_args 0 {
{
bucket_id -1
weight_set [
- [ 5.000 ]
- [ 5.000 ]
+ [ 5.00000 ]
+ [ 5.00000 ]
]
ids [ -10 ]
}
{
bucket_id -2
weight_set [
- [ 2.000 3.000 ]
- [ 2.000 3.000 ]
+ [ 2.00000 3.00000 ]
+ [ 2.00000 3.00000 ]
]
ids [ -20 1 ]
}
diff --git a/src/test/crush/crush_weights.sh b/src/test/crush/crush_weights.sh
index bf2bf8b0baf..5b93f3a1afb 100755
--- a/src/test/crush/crush_weights.sh
+++ b/src/test/crush/crush_weights.sh
@@ -22,14 +22,14 @@ type 2 pool
# buckets
domain root {
id -1 # do not change unnecessarily
- # weight 5.000
+ # weight 5.00000
alg straw2
hash 0 # rjenkins1
- item device0 weight 10.0
- item device1 weight 10.0
- item device2 weight 10.0
- item device3 weight 10.0
- item device4 weight 1.000
+ item device0 weight 10.00000
+ item device1 weight 10.00000
+ item device2 weight 10.00000
+ item device3 weight 10.00000
+ item device4 weight 1.00000
}
# rules
rule data {