Skip to content

Commit 6ed1002

Browse files
idryomovSage Weil
authored andcommitted
crush: allow crush rules to set (re)tries counts to 0
These two fields are misnomers; they are *retry* counts. Reflects ceph.git commit f17caba8ae0cad7b6f8f35e53e5f73b444696835. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
1 parent 48a163d commit 6ed1002

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/ceph/crush/mapper.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,12 +684,12 @@ int crush_do_rule(const struct crush_map *map,
684684
break;
685685

686686
case CRUSH_RULE_SET_CHOOSE_LOCAL_TRIES:
687-
if (curstep->arg1 > 0)
687+
if (curstep->arg1 >= 0)
688688
choose_local_retries = curstep->arg1;
689689
break;
690690

691691
case CRUSH_RULE_SET_CHOOSE_LOCAL_FALLBACK_TRIES:
692-
if (curstep->arg1 > 0)
692+
if (curstep->arg1 >= 0)
693693
choose_local_fallback_retries = curstep->arg1;
694694
break;
695695

0 commit comments

Comments
 (0)