Permalink
Browse files

Moar warning fixes

  • Loading branch information...
Kevin Smith
Kevin Smith committed Mar 6, 2013
1 parent ce55d1b commit 7fa261035c7dfe6129cb12ac29bbd6cf27386305
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/couch_file.erl
View
@@ -235,8 +235,6 @@ pread_ns(#file{fd=Fd,tail_append_begin=TailAppendBegin} = _File, Pos, Bytes) ->
{ok, Bin, Pos >= TailAppendBegin}.
open_ns(FilePath, _Options) ->
- {ok, FileInfo} = file:read_file_info(FilePath),
- Size = FileInfo#file_info.size,
%% We know we are going to read the whole file, so we should bite
%% the bullet and read ahead the whole thing. Couchdb's access
%% pattern is from end towards beginning so it actively subverts

0 comments on commit 7fa2610

Please sign in to comment.