]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: OpRequest currently_* needs to look at latest, not hit.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 2 Feb 2012 00:28:18 +0000 (16:28 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 2 Feb 2012 01:17:24 +0000 (17:17 -0800)
D'oh!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/OpRequest.h

index 839400d8667930460fa0c773ee4ea464233ede29..dfeddd62c8f64db969beda0268a437d34f5fe989 100644 (file)
@@ -55,11 +55,11 @@ public:
   bool been_delayed() { return hit_flag_points & flag_delayed; }
   bool been_started() { return hit_flag_points & flag_started; }
   bool been_sub_op_sent() { return hit_flag_points & flag_sub_op_sent; }
-  bool currently_queued_for_pg() { return hit_flag_points & flag_queued_for_pg; }
-  bool currently_reached_pg() { return hit_flag_points & flag_reached_pg; }
-  bool currently_delayed() { return hit_flag_points & flag_delayed; }
-  bool currently_started() { return hit_flag_points & flag_started; }
-  bool currently_sub_op_sent() { return hit_flag_points & flag_sub_op_sent; }
+  bool currently_queued_for_pg() { return latest_flag_point & flag_queued_for_pg; }
+  bool currently_reached_pg() { return latest_flag_point & flag_reached_pg; }
+  bool currently_delayed() { return latest_flag_point & flag_delayed; }
+  bool currently_started() { return latest_flag_point & flag_started; }
+  bool currently_sub_op_sent() { return latest_flag_point & flag_sub_op_sent; }
 
   const char *state_string() {
     switch(latest_flag_point) {