From 1b7119f94354791c42e87ec7ecfac087189eb94a Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 8 Mar 2010 06:42:00 -0800 Subject: [PATCH] msg: Add an auid field to MPoolOp; additional constructor to match --- src/messages/MPoolOp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/messages/MPoolOp.h b/src/messages/MPoolOp.h index 26bb74825b893..69af6decc53ae 100644 --- a/src/messages/MPoolOp.h +++ b/src/messages/MPoolOp.h @@ -46,12 +46,21 @@ class MPoolOp : public PaxosServiceMessage { int pool; string name; int op; + __u64 auid; MPoolOp() : PaxosServiceMessage(MSG_POOLOP, 0) {} MPoolOp(const ceph_fsid_t& f, tid_t t, int p, string& n, int o, version_t v) : - PaxosServiceMessage(MSG_POOLOP, v), fsid(f), pool(p), name(n), op(o) { + PaxosServiceMessage(MSG_POOLOP, v), fsid(f), pool(p), name(n), op(o), + auid(0) { set_tid(t); } + MPoolOp(const ceph_fsid_t& f, tid_t t, int p, string& n, + int o, __u64 uid, version_t v) : + PaxosServiceMessage(MSG_POOLOP, v), fsid(f), pool(p), name(n), op(o), + auid(auid) { + set_tid(t); + } + const char *get_type_name() { return "poolop"; } void print(ostream& out) {