diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-11-08 11:06:14 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-11-08 11:06:14 -0800 |
commit | 4166d8ca35ded34180d60b56105a853dd6b02ff4 (patch) | |
tree | 3464cfb6e36f67ec5a8fe6f59eae8cbc40759c40 /controller/DB.hpp | |
parent | 53e7e950f187008939dd5021f9d5f635f995f022 (diff) | |
download | infinitytier-4166d8ca35ded34180d60b56105a853dd6b02ff4.tar.gz infinitytier-4166d8ca35ded34180d60b56105a853dd6b02ff4.zip |
Fix a deadlock and some more work on RethinkDB (for central) integration.
Diffstat (limited to 'controller/DB.hpp')
-rw-r--r-- | controller/DB.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller/DB.hpp b/controller/DB.hpp index dfc8ac95..fe06c24d 100644 --- a/controller/DB.hpp +++ b/controller/DB.hpp @@ -78,12 +78,14 @@ public: void networks(std::vector<uint64_t> &networks); - virtual void save(const nlohmann::json &record) = 0; + virtual void save(nlohmann::json *orig,nlohmann::json &record) = 0; virtual void eraseNetwork(const uint64_t networkId) = 0; virtual void eraseMember(const uint64_t networkId,const uint64_t memberId) = 0; + virtual void nodeIsOnline(const uint64_t memberId) = 0; + protected: struct _Network { |