diff options
author | Micael Karlberg <[email protected]> | 2013-10-09 11:28:03 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-10-09 11:28:03 +0200 |
commit | f9f49c3ae40eef669ed165efdc4b03ecb551a8a0 (patch) | |
tree | 3085b3e94bb51c8d822c277a6c9786960b4d9f55 /lib/snmp/src/agent/snmpa_local_db.erl | |
parent | e0ecc86e35475b434efa6cccba44074ca1040b7a (diff) | |
parent | bf552c9138427070b1e17c6fc92f8972d8aef112 (diff) | |
download | otp-f9f49c3ae40eef669ed165efdc4b03ecb551a8a0.tar.gz otp-f9f49c3ae40eef669ed165efdc4b03ecb551a8a0.tar.bz2 otp-f9f49c3ae40eef669ed165efdc4b03ecb551a8a0.zip |
Merge branch 'bmk/snmp/create_db_dir/OTP-11352' into bmk/snmp/snmp425_integration
Diffstat (limited to 'lib/snmp/src/agent/snmpa_local_db.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_local_db.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/snmp/src/agent/snmpa_local_db.erl b/lib/snmp/src/agent/snmpa_local_db.erl index 5198c6ec4e..f991244287 100644 --- a/lib/snmp/src/agent/snmpa_local_db.erl +++ b/lib/snmp/src/agent/snmpa_local_db.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2012. All Rights Reserved. +%% Copyright Ericsson AB 1996-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -191,6 +191,12 @@ dets_open(DbDir, DbInitError, Opts) -> end end; _ -> + case DbInitError of + create_db_and_dir -> + ok = filelib:ensure_dir(Filename); + _ -> + ok + end, case do_dets_open(Name, Filename, Opts) of {ok, Dets} -> ?vdebug("dets open done",[]), |