Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f7baf54
)
Thrift/Ruby: Bug fix.
author
David Reiss
<dreiss@apache.org>
Wed, 6 Feb 2008 18:22:39 +0000
(18:22 +0000)
committer
David Reiss
<dreiss@apache.org>
Wed, 6 Feb 2008 18:22:39 +0000
(18:22 +0000)
Summary:
Some member variables were actually being treated as local variables.
Reviewed By: mcslee
Test Plan: None.
Revert Plan: ok
Other Notes:
Actually reviewed by Kevin Clark.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665462
13f79535
-47bb-0310-9956-
ffa450edef68
lib/rb/lib/thrift/transport/ttransport.rb
patch
|
blob
|
history
diff --git
a/lib/rb/lib/thrift/transport/ttransport.rb
b/lib/rb/lib/thrift/transport/ttransport.rb
index
781db83
..
bdf0935
100644
(file)
--- a/
lib/rb/lib/thrift/transport/ttransport.rb
+++ b/
lib/rb/lib/thrift/transport/ttransport.rb
@@
-210,8
+210,8
@@
class TMemoryBuffer < TTransport
def initialize(sz=1024)
@buf = ''
@sz = sz
- wpos = 0
- rpos = 0
+
@
wpos = 0
+
@
rpos = 0
end
def isOpen
@@
-225,7
+225,7
@@
class TMemoryBuffer < TTransport
end
def peek
- return
rpos <
wpos
+ return
@rpos < @
wpos
end
def getBuffer