From eaacc62086b0daaa02d494bbb4528bfb056cb193 Mon Sep 17 00:00:00 2001 From: Jim Menard Date: Sun, 4 Jan 2009 10:02:32 -0500 Subject: [PATCH] Make sure Message request id ivar matches value put into buffer. --- lib/mongo/message/message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/message/message.rb b/lib/mongo/message/message.rb index 84ce7aa..8ca06ba 100644 --- a/lib/mongo/message/message.rb +++ b/lib/mongo/message/message.rb @@ -22,7 +22,7 @@ module XGen @buf = ByteBuffer.new @buf.put_int(16) # holder for length - @buf.put_int(@@class_req_id += 1) + @buf.put_int(@request_id) @buf.put_int(0) # response_to @buf.put_int(op) end