summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-26 18:03:05 +0100
committerSimon Rettberg2020-02-26 18:03:05 +0100
commit45b345e637e643d4dfaa7bdc4691359f4b170218 (patch)
tree06a9fd3323e58e77b57a36fe2546c4756b4b2356
parent[SERVER] Introduce ignoreAllocErrors (diff)
downloaddnbd3-master.tar.gz
dnbd3-master.tar.xz
dnbd3-master.zip
[SERVER] altservers: Fix missing index mapping (replication)HEADmaster
-rw-r--r--src/server/altservers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/altservers.c b/src/server/altservers.c
index 943345c..3fdbe0d 100644
--- a/src/server/altservers.c
+++ b/src/server/altservers.c
@@ -268,7 +268,7 @@ int altservers_getHostListForReplication(const char *image, dnbd3_host_t *server
int idx[size];
int num = altservers_getListForUplink( NULL, image, idx, size, -1 );
for ( int i = 0; i < num; ++i ) {
- servers[i] = altServers[i].host;
+ servers[i] = altServers[idx[i]].host;
}
return num;
}