diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-07-11 10:42:31 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-07-11 10:42:31 -0700 |
commit | f94aea8119bdf5b894c4d9a29e678c3c3594b490 (patch) | |
tree | 6605b2919773316cbe9512c169ed7f4882af8497 /controller/FileDB.cpp | |
parent | 37ae3b2b80e95758e028e476c9bcb485583f8208 (diff) | |
download | infinitytier-f94aea8119bdf5b894c4d9a29e678c3c3594b490.tar.gz infinitytier-f94aea8119bdf5b894c4d9a29e678c3c3594b490.zip |
Return error 503 if RethinkDB is down when built as RethinkDB-based controller.
Diffstat (limited to 'controller/FileDB.cpp')
-rw-r--r-- | controller/FileDB.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/controller/FileDB.cpp b/controller/FileDB.cpp index e78a64c9..8cbd60ce 100644 --- a/controller/FileDB.cpp +++ b/controller/FileDB.cpp @@ -63,14 +63,10 @@ FileDB::FileDB(EmbeddedNetworkController *const nc,const Identity &myId,const ch } } -FileDB::~FileDB() -{ -} +FileDB::~FileDB() {} -bool FileDB::waitForReady() -{ - return true; -} +bool FileDB::waitForReady() { return true; } +bool FileDB::isReady() { return true; } void FileDB::save(nlohmann::json *orig,nlohmann::json &record) { |