You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2013/02/04 11:39:59 UTC
[1/2] git commit: Do not log errors on creating new view index.
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.
COUCHDB-1666
Patch by Alexander Shorin.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/8097f988
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/8097f988
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/8097f988
Branch: refs/heads/master
Commit: 8097f988d635f9ed3fa5af3c2aa4a49058f107db
Parents: fa4101b
Author: Jan Lehnardt <ja...@apache.org>
Authored: Mon Feb 4 11:39:26 2013 +0100
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Mon Feb 4 11:39:26 2013 +0100
----------------------------------------------------------------------
src/couch_mrview/src/couch_mrview_util.erl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/8097f988/src/couch_mrview/src/couch_mrview_util.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview/src/couch_mrview_util.erl b/src/couch_mrview/src/couch_mrview_util.erl
index ba4de2d..8e6e4dc 100644
--- a/src/couch_mrview/src/couch_mrview_util.erl
+++ b/src/couch_mrview/src/couch_mrview_util.erl
@@ -513,7 +513,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