rubyrep 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.7 2009-07-26
2
+
3
+ * Bug fix: buffered LoggedChangeLoader#update to avoid timeouts with large replication backlogs.
4
+
1
5
  == 1.0.6 2009-07-25
2
6
 
3
7
  * Bug fix: do not assume anymore that replication log events appear in sequential order
@@ -122,8 +122,7 @@ module RR
122
122
  # Example of an :+after_infrastructure_setup+ handler:
123
123
  # lambda do |session|
124
124
  # [:left, :right].each do |database|
125
- # session.send(left).execute \
126
- # "GRANT SELECT, UPDATE, INSERT ON rr_pending_changes TO scott"
125
+ # session.send(database).execute "GRANT SELECT, UPDATE, INSERT ON rr_pending_changes TO scott"
127
126
  # end
128
127
  # end
129
128
  attr_reader :options
@@ -116,7 +116,8 @@ module RR
116
116
  :table => change_log_table,
117
117
  :from => {'id' => current_id},
118
118
  :exclude_starting_row => true,
119
- :type_cast => true
119
+ :type_cast => true,
120
+ :row_buffer_size => session.configuration.options[:row_buffer_size]
120
121
  )
121
122
  while cursor.next?
122
123
  change = cursor.next_row
@@ -165,10 +165,6 @@ module RR
165
165
  cursors[cursor] = cursor
166
166
  end
167
167
 
168
- # default number of records that are read into memory at a time during
169
- # select queries
170
- DEFAULT_ROW_BUFFER_SIZE = 1000
171
-
172
168
  # Returns a cusor as produced by the #select_cursor method of the connection
173
169
  # extenders.
174
170
  #
@@ -2,7 +2,7 @@ module RR #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -64,7 +64,7 @@ describe "Big Rep" do
64
64
  end
65
65
  end
66
66
 
67
- run = ReplicationRun.new session
67
+ run = ReplicationRun.new session, TaskSweeper.new(5)
68
68
  benchmark = Benchmark.measure { run.run }
69
69
  t.join 10
70
70
  puts "\n time required: #{benchmark}"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyrep
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arndt Lehmann
@@ -30,7 +30,7 @@ cert_chain:
30
30
  NwT26VZnE2nr8g==
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-07-25 00:00:00 +09:00
33
+ date: 2009-07-26 00:00:00 +09:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file