Browse files

Do not log errors on creating new view index.

While view index file may be really missed, it's ok for new views
and this error will be self-healed on next couch_file:open call
so there is no reason to worry user about.


Patch by Alexander Shorin.
  • Loading branch information...
1 parent 324d49f commit 579f5f0238dbbcb60fafbf07df7bd2641460eab6 @janl janl committed with benoitc Feb 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/couch_mrview/src/couch_mrview_util.erl
@@ -563,7 +563,7 @@ compaction_file(DbName, Sig) ->
open_file(FName) ->
- case couch_file:open(FName) of
+ case couch_file:open(FName, [nologifmissing]) of
{ok, Fd} -> {ok, Fd};
{error, enoent} -> couch_file:open(FName, [create]);
Error -> Error

0 comments on commit 579f5f0

Please sign in to comment.