Skip to content

Commit

Permalink
Fix leveldb (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and vncoelho committed Dec 5, 2019
1 parent e48eae0 commit bd2d33a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LevelDBStore/IO/Data/LevelDB/DB.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.IO;

namespace Neo.IO.Data.LevelDB
{
Expand Down Expand Up @@ -66,7 +67,7 @@ public static DB Open(string name)

public static DB Open(string name, Options options)
{
IntPtr handle = Native.leveldb_open(options.handle, name, out IntPtr error);
IntPtr handle = Native.leveldb_open(options.handle, Path.GetFullPath(name), out IntPtr error);
NativeHelper.CheckError(error);
return new DB(handle);
}
Expand Down

0 comments on commit bd2d33a

Please sign in to comment.