]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
is_active()
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Tue, 24 Oct 2006 19:52:16 +0000 (19:52 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Tue, 24 Oct 2006 19:52:16 +0000 (19:52 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@944 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/osdc/Journaler.h

index a88676b6c16d8ab8986dd58be65d6791fc3de978..237c5506b3f4eb6176779f5146603c47b4c5cdb7 100644 (file)
@@ -184,6 +184,8 @@ public:
   void recover(Context *onfinish);
   void write_head(Context *onsave=0);
 
+  bool is_active() { return state == STATE_ACTIVE; }
+
   off_t get_write_pos() const { return write_pos; }
   off_t get_read_pos() const { return read_pos; }
   off_t get_expire_pos() const { return expire_pos; }