summaryrefslogtreecommitdiff
path: root/grid
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-06-12 11:56:40 -0400
committerDwight <dmerriman@gmail.com>2008-06-12 11:56:40 -0400
commitc79a5e1753d25f261a059b33a172ea3534fd67f3 (patch)
tree698e457d475049866f07ad68231084705ffed9c7 /grid
parent1d8c3e37b32a11d2e2b64fee019782f5efdd19c6 (diff)
downloadmongo-c79a5e1753d25f261a059b33a172ea3534fd67f3.tar.gz
fix a jni issue with the last bug fix.
Diffstat (limited to 'grid')
-rw-r--r--grid/message.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/grid/message.h b/grid/message.h
index 3a26909dec9..1f4df0d83bd 100644
--- a/grid/message.h
+++ b/grid/message.h
@@ -75,7 +75,7 @@ struct MsgData {
int operation;
char _data[4];
- int dataLen();
+ int dataLen(); // len without header
};
const int MsgDataHeaderSize = sizeof(MsgData) - 4;
inline int MsgData::dataLen() { return len - MsgDataHeaderSize; }
@@ -85,7 +85,7 @@ inline int MsgData::dataLen() { return len - MsgDataHeaderSize; }
class Message {
public:
Message() { data = 0; freeIt = false; }
- Message( void * _data , bool _freeIt ){ data = (MsgData*)_data; freeIt = _freeIt; };
+ Message( void * _data , bool _freeIt ){ data = (MsgData*)_data; freeIt = _freeIt; };
~Message() { reset(); }
SockAddr from;
@@ -129,4 +129,3 @@ public:
private:
bool freeIt;
};
-