summaryrefslogtreecommitdiff
path: root/src/osd/OSD.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-01-22 18:03:10 -0800
committerSage Weil <sage@inktank.com>2013-01-22 18:03:10 -0800
commita4e78652cdd1698e8dd72dda51599348d013e5e0 (patch)
tree4ecdae9f28adb095b339be473fcc9820d7756080 /src/osd/OSD.h
parentc406476c0309792c43df512dddb2fe0f19835e71 (diff)
downloadceph-a4e78652cdd1698e8dd72dda51599348d013e5e0.tar.gz
osd: do not join cluster if not healthy
If our internal heartbeats are failing, do not send a boot message and try to join the cluster. Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/osd/OSD.h')
-rw-r--r--src/osd/OSD.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/OSD.h b/src/osd/OSD.h
index 359d75396fe..1fb34aac610 100644
--- a/src/osd/OSD.h
+++ b/src/osd/OSD.h
@@ -494,6 +494,7 @@ public:
static const int STATE_BOOTING = 2;
static const int STATE_ACTIVE = 3;
static const int STATE_STOPPING = 4;
+ static const int STATE_WAITING_FOR_HEALTHY = 5;
private:
int state;
@@ -506,6 +507,7 @@ public:
bool is_booting() { return state == STATE_BOOTING; }
bool is_active() { return state == STATE_ACTIVE; }
bool is_stopping() { return state == STATE_STOPPING; }
+ bool is_waiting_for_healthy() { return state == STATE_WAITING_FOR_HEALTHY; }
private: