Skip to content

Commit

Permalink
Fix regression from cassandra-rb#127. Resolves cassandra-rb#129.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Jackson committed Nov 15, 2011
1 parent 42dbc55 commit 2d8989c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cassandra/cassandra.rb
Expand Up @@ -755,6 +755,8 @@ def get_range_batch(column_family, options = {})
last_key = nil

while first_key != last_key && (count.nil? || count > num_results)
first_key = last_key

res = get_range_single(column_family, options.merge!(:start_key => first_key,
:key_count => batch_size,
:return_empty_rows => true
Expand All @@ -773,8 +775,6 @@ def get_range_batch(column_family, options = {})
end
last_key = key
end

first_key = last_key
end

result
Expand Down

0 comments on commit 2d8989c

Please sign in to comment.