示例#1
0
        public void Repair()
        {
            Native.leveldb_close(Database);
            Database = IntPtr.Zero;

            var options = Native.leveldb_options_create();

            Native.leveldb_repair_db(options, DatabasePath);
            Native.leveldb_options_destroy(options);
        }
示例#2
0
文件: DB.cs 项目: nGenieDeveloper/BD2
 public static void Repair(Options options, string path)
 {
     if (path == null)
     {
         throw new ArgumentNullException("path");
     }
     if (options == null)
     {
         options = new Options();
     }
     Native.leveldb_repair_db(options.Handle, path);
 }