summaryrefslogtreecommitdiff
path: root/src/mongo/db/views/view_sharding_check.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/views/view_sharding_check.h')
-rw-r--r--src/mongo/db/views/view_sharding_check.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/views/view_sharding_check.h b/src/mongo/db/views/view_sharding_check.h
index d3437353212..c59455dd5aa 100644
--- a/src/mongo/db/views/view_sharding_check.h
+++ b/src/mongo/db/views/view_sharding_check.h
@@ -65,10 +65,11 @@ public:
const ViewDefinition* view);
/**
- * Appends the resolved view definition and CommandOnShardedViewNotSupportedOnMongod status to
- * 'result'.
+ * Appends the resolved view definition to 'result' and returns a
+ * CommandOnShardedViewNotSupportedOnMongod error status. The caller is responsible for
+ * appending the non-ok status and error code.
*/
- static void appendShardedViewStatus(const BSONObj& resolvedView, BSONObjBuilder* result);
+ static Status appendShardedViewResponse(const BSONObj& resolvedView, BSONObjBuilder* result);
private:
/**