lib/deepstream/record.rb in deepstream-1.0.8 vs lib/deepstream/record.rb in deepstream-1.0.9
- old
+ new
@@ -38,11 +38,11 @@
@data_cache = @data
@client.send_message(TOPIC::RECORD, ACTION::CREATEORREAD, @name, priority: true)
end
def end_reinitializing
- reset_version
- set(@data_cache)
+ reset_version if @client.options[:reinitialize_master]
+ set(@data_cache) if @client.options[:reinitialize_master]
@is_reinitializing = false
end
def inspect
"#{self.class} #{@name} #{@version} #{@data}"