diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-02-19 12:55:01 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-02-19 12:55:01 -0500 |
commit | 07cdf7632927e3d0b955930b642813583612c6ad (patch) | |
tree | f952453741655fe218389b17941c730cb64187d8 /s/request.h | |
parent | 33d9b928fcf98b13d3f75428cd253d563cc3b47d (diff) | |
download | mongo-07cdf7632927e3d0b955930b642813583612c6ad.tar.gz |
shard infrastructure checkpoint
Diffstat (limited to 's/request.h')
-rw-r--r-- | s/request.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/s/request.h b/s/request.h index ce79d5aa3a5..d18c72a77d3 100644 --- a/s/request.h +++ b/s/request.h @@ -16,6 +16,12 @@ namespace mongo { const char * getns(){ return _d.getns(); } + int op(){ + return _m.data->operation(); + } + bool expectResponse(){ + return op() == dbQuery || op() == dbGetMore; + } MSGID id(){ return _id; @@ -43,6 +49,8 @@ namespace mongo { DbMessage& d(){ return _d; } MessagingPort& p(){ return _p; } + void process(); + private: Message& _m; DbMessage _d; |