summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/couch/include/couch_db.hrl2
-rw-r--r--apps/couch/src/couch_db_updater.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/couch/include/couch_db.hrl b/apps/couch/include/couch_db.hrl
index 79af0db6..20f451d9 100644
--- a/apps/couch/include/couch_db.hrl
+++ b/apps/couch/include/couch_db.hrl
@@ -166,7 +166,7 @@
update_seq,
name,
filepath,
- validate_doc_funs = [],
+ validate_doc_funs = undefined,
security = [],
security_ptr = nil,
user_ctx = #user_ctx{},
diff --git a/apps/couch/src/couch_db_updater.erl b/apps/couch/src/couch_db_updater.erl
index e4f8d0ca..eebd32fb 100644
--- a/apps/couch/src/couch_db_updater.erl
+++ b/apps/couch/src/couch_db_updater.erl
@@ -463,7 +463,7 @@ refresh_validate_doc_funs(Db) ->
case Db#db.name of
<<"shards/", _:18/binary, DbName/binary>> ->
fabric:reset_validation_funs(DbName),
- Db#db{validate_doc_funs=ProcessDocFuns};
+ Db#db{validate_doc_funs=undefined};
_ ->
Db#db{validate_doc_funs=ProcessDocFuns}
end.