From 6e217dfcb01c923e54dd172d0dfca68ab8566bdd Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 21 Oct 2013 10:29:44 -0400 Subject: Get rid of DBM, which technically is a case of YAGNI. Supernodes will need a way to save identities, but that can be a different feature. Regular clients do not really need a permanent cache (yet). When/if we do need one we can do it then. Until then it only caused problems. --- node/Node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index 71d8b097..8b2815e2 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -380,6 +380,7 @@ Node::ReasonForTermination Node::run() // Clean up some obsolete files if present -- this will be removed later Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "status")); Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine")); + Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "peer.db")); // Make sure networks.d exists #ifdef __WINDOWS__ @@ -407,7 +408,7 @@ Node::ReasonForTermination Node::run() _r->mc = new Multicaster(); _r->sw = new Switch(_r); _r->demarc = new Demarc(_r); - _r->topology = new Topology(_r,(_r->homePath + ZT_PATH_SEPARATOR_S + "peer.db").c_str()); + _r->topology = new Topology(_r); _r->sysEnv = new SysEnv(_r); try { _r->nc = new NodeConfig(_r,configAuthToken.c_str(),impl->controlPort); -- cgit v1.2.3