]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TrackedOp: create an "initiated" event on construction
authorGreg Farnum <greg@inktank.com>
Thu, 8 May 2014 19:51:54 +0000 (12:51 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 9 May 2014 21:09:30 +0000 (14:09 -0700)
This ensures we always have an event for state_string().

Signed-off-by: Greg Farnum <greg@inktank.com>
src/common/TrackedOp.h

index 2e620ce959e6bc321e83ebc7c2bbf17431e5770b..ae42d7014899e26995396ba981c80db024ef3bed 100644 (file)
@@ -140,6 +140,7 @@ protected:
     warn_interval_multiplier(1)
   {
     tracker->register_inflight_op(&xitem);
+    events.push_back(make_pair(initiated_at, "initiated"));
   }
 
   /// output any type-specific data you want to get when dump() is called