From 74d638a59f84df8d1419ae6b85d3f1cc2c456246 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 23 Mar 2010 13:20:12 -0700 Subject: [PATCH] mds: possible session 'importing' state --- src/mds/SessionMap.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h index b5b002b301987..32817d14968b2 100644 --- a/src/mds/SessionMap.h +++ b/src/mds/SessionMap.h @@ -43,20 +43,17 @@ class Session : public RefCountedObject { // -- state etc -- public: /* - +-----------------------------------+ - | | - closed <---------------------+ | - | | | - v | | - opening <---+ | | - | | | | - v | | | - open --> closing ------------+ | - |^ | - v| v - stale -> killing --------------> - - (closed) -> importing -> (opening or open or ) + + <-- closed <------------+--------+ + ^ | | | + | v | | + killing opening <---+ | | + ^ | | | | + | v | | | + stale <--> open --> closing ---+ | + ^ | + | | + importing <------------------+ */ static const int STATE_CLOSED = 0; @@ -65,6 +62,7 @@ public: static const int STATE_CLOSING = 3; // journaling close static const int STATE_STALE = 4; static const int STATE_KILLING = 5; + static const int STATE_IMPORTING = 6; const char *get_state_name(int s) { switch (s) { @@ -74,6 +72,7 @@ public: case STATE_CLOSING: return "closing"; case STATE_STALE: return "stale"; case STATE_KILLING: return "killing"; + case STATE_IMPORTING: return "importing"; default: return "???"; } } -- 2.39.5