From 922d0749d0f893d62ec9f871b7aa9f950151e301 Mon Sep 17 00:00:00 2001
From: Matthieu Hautreux <matthieu.hautreux@cea.fr>
Date: Wed, 25 Jan 2012 22:28:51 +0100
Subject: [PATCH] slurmd: build node hash table before the topology data to
 speed up the process

---
 src/slurmd/slurmd/slurmd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/slurmd/slurmd/slurmd.c b/src/slurmd/slurmd/slurmd.c
index a17311da9d0..298381c291a 100644
--- a/src/slurmd/slurmd/slurmd.c
+++ b/src/slurmd/slurmd/slurmd.c
@@ -1228,7 +1228,9 @@ _slurmd_init(void)
 
 	/*
 	 * Get and set slurmd topology information
+	 * Build node hash table first to speed up the topo build
 	 */
+	rehash_node();
 	slurm_topo_build_config();
 	_set_topo_info();
 
-- 
GitLab