From 374fec47253bad511eee52d372f182402fb17b1a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 27 Jan 2012 12:23:33 -0800 Subject: [PATCH] objector: document Objecter::init_ops() Signed-off-by: Sage Weil --- src/osdc/Objecter.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index 7522a5929a33c..61b6e8f7ccb41 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -861,7 +861,16 @@ private: eversion_t *objver); void unregister_linger(uint64_t linger_id); - + /** + * set up initial ops in the op vector, and allocate a final op slot. + * + * The caller is responsible for filling in the final op. + * + * @param ops op vector + * @param ops_count number of initial ops + * @param extra_ops pointer to [array of] initial op[s] + * @return index of final op (for caller to fill in) + */ int init_ops(vector& ops, int ops_count, ObjectOperation *extra_ops) { int i; -- 2.39.5