Permalink
Browse files

fixing current file

  • Loading branch information...
1 parent c28344b commit 69bdd490c8b556aee777bb1227f8922eda2fe091 @garru committed Aug 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/distributed_logreader/distributed_log_reader/scribe_reader.rb
@@ -23,7 +23,7 @@ def current?
directory = File.dirname(log_file)
basename = File.basename(directory)
current_file = File.join(directory, "#{basename}_current")
- File.identical?(current_file, log_file)
+ File.exists?(current_file) && File.identical?(current_file, log_file)
end
end
end

0 comments on commit 69bdd49

Please sign in to comment.