         cb      : (err, results) ->
             if err
                 cb(err); return
-            topology = {}
-            for r in results
-                datacenter = r[0]; host = r[1]; vnodes = r[2]
-                if not topology[datacenter]?
-                    topology[datacenter] = {}
-                topology[datacenter][host] = {vnodes:vnodes}
-                all_hosts.push(host)
-                host_to_datacenter[host] = datacenter
-            winston.debug(misc.to_json(topology))
-            hashrings = {}
-            for dc, obj of topology
-                hashrings[dc] = new HashRing(obj)
-            cb?()
+            init_hashrings_2(results, cb)
+
+init_hashrings_2 = (results, cb) ->
+    topology = {}
+    for r in results
+        datacenter = r[0]; host = r[1]; vnodes = r[2]
+        if not topology[datacenter]?
+            topology[datacenter] = {}
+        topology[datacenter][host] = {vnodes:vnodes}
+        all_hosts.push(host)
+        host_to_datacenter[host] = datacenter
+    winston.debug(misc.to_json(topology))
+    hashrings = {}
+    for dc, obj of topology
+        hashrings[dc] = new HashRing(obj)
+    cb?()
+
+# TODO -- hard coding results from above so backup node doesn't need DB access yet!
+exports.init2 = (cb) ->
+    results = [["0","10.1.1.4",256],["0","10.1.2.4",256],["0","10.1.3.4",256],["0","10.1.4.4",256],["0","10.1.5.4",256],["0","10.1.6.4",256],["0","10.1.7.4",256],["2","10.3.1.4",256],["2","10.3.2.4",256],["2","10.3.3.4",256],["2","10.3.4.4",256],["1","10.1.10.4",256],["1","10.1.11.4",256],["1","10.1.12.4",256],["1","10.1.13.4",256],["1","10.1.14.4",256],["1","10.1.15.4",256],["1","10.1.16.4",256],["1","10.1.17.4",256],["1","10.1.18.4",256],["1","10.1.19.4",256],["1","10.1.20.4",256],["1","10.1.21.4",256]]
+    init_hashrings_2(results, cb)
 
 exports.locations = locations = (opts) ->
     opts = defaults opts,



###
# Migrate -- throw away code for migrating from the old /mnt/home/blah projects to new ones
###


                # Now make array of the elements in d that have this newest version
                # choose one at random.  This way if one machine is down/busted once,
                # there is a chance we will hit another one next time.
                # TODO: really we should try each target in turn, from best to worst, until one succeeds.
                d2 = (x for x in d when x.version == dest.version)
                dest = d2[misc.randint(0,d2.length-1)]

