#include "crimson/net/Connection.h"
#include "crimson/osd/object_context.h"
#include "crimson/osd/osd_operation.h"
+#include "crimson/osd/osd_operations/common/pg_pipeline.h"
#include "crimson/common/type_helpers.h"
#include "messages/MOSDOp.h"
};
friend class ClientRequest;
};
- class PGPipeline {
+ class PGPipeline : public CommonPGPipeline {
OrderedExclusivePhase await_map = {
"ClientRequest::PGPipeline::await_map"
};
- OrderedExclusivePhase wait_for_active = {
- "ClientRequest::PGPipeline::wait_for_active"
- };
- OrderedExclusivePhase recover_missing = {
- "ClientRequest::PGPipeline::recover_missing"
- };
- OrderedExclusivePhase get_obc = {
- "ClientRequest::PGPipeline::get_obc"
- };
- OrderedExclusivePhase process = {
- "ClientRequest::PGPipeline::process"
- };
friend class ClientRequest;
};
--- /dev/null
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+#pragma once
+
+#include "osd/osd_op_util.h"
+#include "crimson/osd/osd_operation.h"
+
+namespace crimson::osd {
+
+class CommonPGPipeline {
+protected:
+ OrderedExclusivePhase wait_for_active = {
+ "CommonPGPipeline:::wait_for_active"
+ };
+ OrderedExclusivePhase recover_missing = {
+ "CommonPGPipeline::recover_missing"
+ };
+ OrderedExclusivePhase get_obc = {
+ "CommonPGPipeline::get_obc"
+ };
+ OrderedExclusivePhase process = {
+ "CommonPGPipeline::process"
+ };
+};
+
+} // namespace crimson::osd