From 2486c61af02ee486c2406e3b87999d46ac7c8b7e Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 23 Mar 2012 22:54:41 -0700 Subject: FileStore: Pass OpRequestRef into filestore in queue_transaction This allow us to track op progress through the filestore. Signed-off-by: Samuel Just --- src/os/ObjectStore.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/os/ObjectStore.h') diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 95c08b40744..e6f46f3d4f4 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -20,6 +20,7 @@ #include "include/buffer.h" #include "include/types.h" #include "osd/osd_types.h" +#include "common/TrackedOp.h" #include "ObjectMap.h" #include @@ -579,15 +580,15 @@ public: virtual int queue_transaction(Sequencer *osr, Transaction* t) = 0; virtual int queue_transaction(Sequencer *osr, Transaction *t, Context *onreadable, Context *ondisk=0, - Context *onreadable_sync=0) { + Context *onreadable_sync=0, + TrackedOpRef op = TrackedOpRef()) { list tls; tls.push_back(t); - return queue_transactions(osr, tls, onreadable, ondisk, onreadable_sync); + return queue_transactions(osr, tls, onreadable, ondisk, onreadable_sync, op); } virtual int queue_transactions(Sequencer *osr, list& tls, Context *onreadable, Context *ondisk=0, - Context *onreadable_sync=0) = 0; - - + Context *onreadable_sync=0, + TrackedOpRef op = TrackedOpRef()) = 0; public: ObjectStore() : logger(NULL) {} -- cgit v1.2.1