patches/rebalance-hash.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1ae49476cf762e5da16c096ba60f80d20427b6c4
Author: Jeff Darcy <jdarcy(a)redhat.com>
Date: Fri Dec 17 14:30:08 2010 -0500
Fix sizeof typo (Coverity).
diff --git a/patches/rebalance-hash.patch b/patches/rebalance-hash.patch
index 27dfdae..5cb8115 100644
--- a/patches/rebalance-hash.patch
+++ b/patches/rebalance-hash.patch
@@ -1,5 +1,5 @@
diff --git a/xlators/cluster/dht/src/dht-layout.c b/xlators/cluster/dht/src/dht-layout.c
-index 8a5f45d..17d2b7f 100644
+index 8a5f45d..8c3b51f 100644
--- a/xlators/cluster/dht/src/dht-layout.c
+++ b/xlators/cluster/dht/src/dht-layout.c
@@ -171,8 +171,18 @@ dht_layout_search (xlator_t *this, dht_layout_t *layout, const char
*name)
@@ -17,7 +17,7 @@ index 8a5f45d..17d2b7f 100644
+ * originals, without trying to duplicate the layout algorithms in a
+ * separate piece of code.
+ */
-+ if (!strncmp(name,pfx,sizeof(pfx-1))) {
++ if (!strncmp(name,pfx,sizeof(pfx)-1)) {
+ name += sizeof(pfx) - 1;
+ }
ret = dht_hash_compute (layout->type, name, &hash);
Show replies by date