diff options
Diffstat (limited to 'apps/couch')
-rw-r--r-- | apps/couch/src/couch_server.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/couch/src/couch_server.erl b/apps/couch/src/couch_server.erl index bfbe9c09..4252a035 100644 --- a/apps/couch/src/couch_server.erl +++ b/apps/couch/src/couch_server.erl @@ -65,9 +65,9 @@ close_lru() -> create(DbName, Options) -> case gen_server:call(couch_server, {create, DbName, Options}, infinity) of - {ok, Db} -> + {ok, #db{fd=Fd} = Db} -> Ctx = couch_util:get_value(user_ctx, Options, #user_ctx{}), - {ok, Db#db{user_ctx=Ctx}}; + {ok, Db#db{user_ctx=Ctx, fd_monitor=erlang:monitor(process,Fd)}}; Error -> Error end. |