From 1e56c6d0bcd0a0b75f0f16060da015612f948134 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Wed, 25 Apr 2012 15:28:22 -0400 Subject: [PATCH] LU-1308 Additional multihomed nid config fix Need to put the new nid addition at the last slot available, not next after the last. Change-Id: Icf9d898fba4c6e9c05f085b855a33282ea0d4b47 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/2599 Reviewed-by: Denis Kondratenko Reviewed-by: Jinshan Xiong Tested-by: Hudson Reviewed-by: Cory Spitz Tested-by: Maloo --- lustre/obdclass/lustre_peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/lustre_peer.c b/lustre/obdclass/lustre_peer.c index 8814b2b..27dd3e1 100644 --- a/lustre/obdclass/lustre_peer.c +++ b/lustre/obdclass/lustre_peer.c @@ -126,7 +126,7 @@ int class_add_uuid(const char *uuid, __u64 nid) if (i == entry->un_nid_count) { LASSERT(entry->un_nid_count < NIDS_MAX); - entry->un_nids[++entry->un_nid_count] = nid; + entry->un_nids[entry->un_nid_count++] = nid; } break; } -- 1.8.3.1