diff options
author | Dwight <dmerriman@gmail.com> | 2008-06-12 11:56:40 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-06-12 11:56:40 -0400 |
commit | c79a5e1753d25f261a059b33a172ea3534fd67f3 (patch) | |
tree | 698e457d475049866f07ad68231084705ffed9c7 /grid | |
parent | 1d8c3e37b32a11d2e2b64fee019782f5efdd19c6 (diff) | |
download | mongo-c79a5e1753d25f261a059b33a172ea3534fd67f3.tar.gz |
fix a jni issue with the last bug fix.
Diffstat (limited to 'grid')
-rw-r--r-- | grid/message.h | 5 |
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; }; - |