[hail patch 3/7] Drop useless code from cldu.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Forgot to kill this when <StorageNode> was removed.

Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 server/cldu.c |   23 -----------------------
 1 file changed, 23 deletions(-)

commit 8945b6d9da4efb3fc3f8bd33759c85ee57b148dd
Author: Pete Zaitcev <zaitcev@xxxxxxxxx>
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 <StorageNode>.
-	 */
-	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:
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux