mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
ethdb/rocksdb: disable rocksdb on Windows
This commit is contained in:
parent
d9700c4369
commit
939e8574a2
2 changed files with 31 additions and 1 deletions
|
|
@ -14,6 +14,8 @@
|
|||
// 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/>.
|
||||
|
||||
// +build !windows
|
||||
|
||||
// Package rocksdb contains the RocksDB based database storage engine.
|
||||
package rocksdb
|
||||
|
||||
|
|
@ -23,7 +25,7 @@ import (
|
|||
"runtime"
|
||||
"unsafe"
|
||||
|
||||
_ "github.com/cockroachdb/c-rocksdb"
|
||||
_ "github.com/cockroachdb/c-rocksdb" // Placeholder package for CGO wrapper
|
||||
"github.com/ethereum/go-ethereum/ethdb"
|
||||
)
|
||||
|
||||
|
|
|
|||
28
ethdb/rocksdb/rocksdb_windows.go
Normal file
28
ethdb/rocksdb/rocksdb_windows.go
Normal 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")
|
||||
}
|
||||
Loading…
Reference in a new issue