summaryrefslogtreecommitdiff
path: root/controller/EmbeddedNetworkController.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-07 13:39:25 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-07 13:39:25 -0800
commit8d9464c4140e5882b0fc9276388401514f29e62a (patch)
tree3d8429fb4a40793649ee77367545dfd1f18544a5 /controller/EmbeddedNetworkController.cpp
parentada611d597c935f95a807db8ac7bf01e386937fa (diff)
downloadinfinitytier-8d9464c4140e5882b0fc9276388401514f29e62a.tar.gz
infinitytier-8d9464c4140e5882b0fc9276388401514f29e62a.zip
docs, and make RethinkDB controller DB driver upsert into the Controller DB and also update the hostname field.
Diffstat (limited to 'controller/EmbeddedNetworkController.cpp')
-rw-r--r--controller/EmbeddedNetworkController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp
index a3ce9208..d97a1ce2 100644
--- a/controller/EmbeddedNetworkController.cpp
+++ b/controller/EmbeddedNetworkController.cpp
@@ -477,10 +477,10 @@ void EmbeddedNetworkController::init(const Identity &signingId,Sender *sender)
_signingIdAddressString = signingId.address().toString(tmp);
#ifdef ZT_CONTROLLER_USE_RETHINKDB
if ((_path.length() > 10)&&(_path.substr(0,10) == "rethinkdb:"))
- _db.reset(new RethinkDB(this,_signingId.address(),_path.c_str()));
+ _db.reset(new RethinkDB(this,_signingId,_path.c_str()));
else // else use FileDB after endif
#endif
- _db.reset(new FileDB(this,_signingId.address(),_path.c_str()));
+ _db.reset(new FileDB(this,_signingId,_path.c_str()));
_db->waitForReady();
}