diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-06 10:42:54 -0500 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-06 10:42:54 -0500 |
commit | 00fb9c475e7bd68a12d6d581539862c31aeb2e74 (patch) | |
tree | 2f8423fff1914998fd858e1b4214a0394437974c /controller/FileDB.hpp | |
parent | 3c776675b3824d4497d913386793efaece2ee7d1 (diff) | |
download | infinitytier-00fb9c475e7bd68a12d6d581539862c31aeb2e74.tar.gz infinitytier-00fb9c475e7bd68a12d6d581539862c31aeb2e74.zip |
More work on DB mirroring.
Diffstat (limited to 'controller/FileDB.hpp')
-rw-r--r-- | controller/FileDB.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/controller/FileDB.hpp b/controller/FileDB.hpp index deef8854..8aa2c18e 100644 --- a/controller/FileDB.hpp +++ b/controller/FileDB.hpp @@ -35,17 +35,18 @@ namespace ZeroTier class FileDB : public DB { public: - FileDB(const Identity &myId,const char *path); + FileDB(const char *path); virtual ~FileDB(); virtual bool waitForReady(); virtual bool isReady(); - virtual void save(nlohmann::json &record); + virtual bool save(nlohmann::json &record,bool notifyListeners); virtual void eraseNetwork(const uint64_t networkId); virtual void eraseMember(const uint64_t networkId,const uint64_t memberId); virtual void nodeIsOnline(const uint64_t networkId,const uint64_t memberId,const InetAddress &physicalAddress); protected: + std::string _path; std::string _networksPath; std::string _tracePath; std::thread _onlineUpdateThread; |