|
@@ -40,8 +40,8 @@
|
|
#include "LFDB.hpp"
|
|
#include "LFDB.hpp"
|
|
#include "FileDB.hpp"
|
|
#include "FileDB.hpp"
|
|
#ifdef ZT_CONTROLLER_USE_LIBPQ
|
|
#ifdef ZT_CONTROLLER_USE_LIBPQ
|
|
-#include "PostgreSQL.hpp"
|
|
|
|
#include "CV1.hpp"
|
|
#include "CV1.hpp"
|
|
|
|
+#include "CV2.hpp"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#include "../node/Node.hpp"
|
|
#include "../node/Node.hpp"
|
|
@@ -536,6 +536,8 @@ void EmbeddedNetworkController::init(const Identity &signingId,Sender *sender)
|
|
#ifdef ZT_CONTROLLER_USE_LIBPQ
|
|
#ifdef ZT_CONTROLLER_USE_LIBPQ
|
|
if ((_path.length() > 9)&&(_path.substr(0,9) == "postgres:")) {
|
|
if ((_path.length() > 9)&&(_path.substr(0,9) == "postgres:")) {
|
|
_db.addDB(std::shared_ptr<DB>(new CV1(_signingId,_path.substr(9).c_str(), _listenPort, _rc)));
|
|
_db.addDB(std::shared_ptr<DB>(new CV1(_signingId,_path.substr(9).c_str(), _listenPort, _rc)));
|
|
|
|
+ } else if ((_path.length() > 3)&&(_path.substr(0,3) == "cv2:")) {
|
|
|
|
+ _db.addDB(std::shared_ptr<DB>(new CV2(_signingId,_path.c_str(),_listenPort)));
|
|
} else {
|
|
} else {
|
|
#endif
|
|
#endif
|
|
_db.addDB(std::shared_ptr<DB>(new FileDB(_path.c_str())));
|
|
_db.addDB(std::shared_ptr<DB>(new FileDB(_path.c_str())));
|