From f176db6b88f2e932d1cf7e018e42f9a995301e76 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 014e714..5b3501e 100644 --- a/lustre/obdclass/lustre_peer.c +++ b/lustre/obdclass/lustre_peer.c @@ -128,7 +128,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