* Fwd: crush_addition_is_unsafe
[not found] <CANX6Damfw3SQZmWhC+C0258utdJHRM2Qnx6pZXYHnGFdXtYu_A@mail.gmail.com>
@ 2014-08-13 13:38 ` Viral Mehta
0 siblings, 0 replies; only message in thread
From: Viral Mehta @ 2014-08-13 13:38 UTC (permalink / raw)
To: ceph-devel
Does this make sense ? I can prepare a patch.
diff --git a/src/crush/builder.c b/src/crush/builder.c
index c319620..5700a88 100644
--- a/src/crush/builder.c
+++ b/src/crush/builder.c
@@ -651,7 +651,7 @@ int crush_add_tree_bucket_item(struct
crush_bucket_tree *bucket, int item, int w
for (j=1; j<depth; j++) {
node = parent(node);
- if
(!crush_addition_is_unsafe(bucket->node_weights[node], weight))
+ if
(crush_addition_is_unsafe(bucket->node_weights[node], weight))
return -ERANGE;
bucket->node_weights[node] += weight;
--
VKM
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-13 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CANX6Damfw3SQZmWhC+C0258utdJHRM2Qnx6pZXYHnGFdXtYu_A@mail.gmail.com>
2014-08-13 13:38 ` Fwd: crush_addition_is_unsafe Viral Mehta
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.