From: Pete Zaitcev Subject: [hail patch 3/7] Drop useless code from cldu.c Date: Thu, 29 Jul 2010 20:50:03 -0600 Message-ID: <20100729205003.1cc235a1@lembas.zaitcev.lan> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jeff Garzik Cc: Project Hail List Forgot to kill this when was removed. Signed-off-by: Pete Zaitcev --- server/cldu.c | 23 ----------------------- 1 file changed, 23 deletions(-) commit 8945b6d9da4efb3fc3f8bd33759c85ee57b148dd Author: Pete Zaitcev Date: Thu Jul 29 19:24:17 2010 -0600 StorageNode is gone, but this chunk was forgotten. diff --git a/server/cldu.c b/server/cldu.c index e247f45..5f3631b 100644 --- a/server/cldu.c +++ b/server/cldu.c @@ -351,29 +351,6 @@ static int cldu_set_cldc(struct cld_session *sp, int newactive) ncld_read_free(nrp); - /* - * If configuration gives us storage nodes, we shortcut scanning - * of CLD, because: - * - the scanning may fail, and we should not care - * - NIDs for configured nodes are auto-assigned and may conflict - * This will go away with the demise of . - */ - if (tabled_srv.num_stor) { - if (debugging) - applog(LOG_DEBUG, "Trying to open %d storage nodes", - tabled_srv.num_stor); - while (stor_update_cb() < 1) { - tm.tv_sec = 3; - tm.tv_nsec = 0; - nanosleep(&tm, NULL); - if (debugging) - applog(LOG_DEBUG, - "Trying to reopen %d storage nodes", - tabled_srv.num_stor); - } - return 0; - } - return 0; err_dread: