Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

Commit 7426323

Browse files
committed
unconditionally save tail state on initial import
1 parent 98e282f commit 7426323

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

lib/mosql/streamer.rb

+5-7
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ def track_time
8080
def initial_import
8181
@schema.create_schema(@sql.db, !options[:no_drop_tables])
8282

83-
unless options[:skip_tail]
84-
start_state = {
85-
'time' => nil,
86-
'position' => @tailer.most_recent_position
87-
}
88-
end
83+
start_state = {
84+
'time' => nil,
85+
'position' => @tailer.most_recent_position
86+
}
8987

9088
dbnames = []
9189

@@ -115,7 +113,7 @@ def initial_import
115113
end
116114
end
117115

118-
tailer.save_state(start_state) unless options[:skip_tail]
116+
tailer.save_state(start_state)
119117
end
120118

121119
def did_truncate; @did_truncate ||= {}; end

lib/mosql/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module MoSQL
2-
VERSION = "0.4.3"
2+
VERSION = "0.4.4"
33
end

0 commit comments

Comments
 (0)