ethdb/rocksdb: disable rocksdb on Windows

This commit is contained in:
Péter Szilágyi 2016-02-23 11:49:35 +02:00
parent d9700c4369
commit 939e8574a2
2 changed files with 31 additions and 1 deletions

View file

@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !windows
// Package rocksdb contains the RocksDB based database storage engine. // Package rocksdb contains the RocksDB based database storage engine.
package rocksdb package rocksdb
@ -23,7 +25,7 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
_ "github.com/cockroachdb/c-rocksdb" _ "github.com/cockroachdb/c-rocksdb" // Placeholder package for CGO wrapper
"github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethdb"
) )

View file

@ -0,0 +1,28 @@
// Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
package rocksdb
import (
"errors"
"github.com/ethereum/go-ethereum/ethdb"
)
// New errors out as the dependent libraries don't build currently.
func New(dir string, cache uint64, handles int) (ethdb.Database, error) {
return nil, errors.New("windows not supported")
}