Skip to content

Commit

Permalink
msg: Add an auid field to MPoolOp; additional constructor to match
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Farnum committed Mar 8, 2010
1 parent 3b1bf4b commit 1b7119f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/messages/MPoolOp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b7119f

Please sign in to comment.