From: Oleg Drokin Date: Wed, 25 Apr 2012 19:28:22 +0000 (-0400) Subject: LU-1308 Additional multihomed nid config fix X-Git-Tag: 2.2.52~38 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f176db6b88f2e932d1cf7e018e42f9a995301e76 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 --- 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; }