Browse Source

mvcc: set bolt options to nil for non-linux systems

Nick Owens 9 years ago
parent
commit
e4e4c9dc2c

+ 0 - 19
mvcc/backend/boltoption_darwin.go

@@ -1,19 +0,0 @@
-// Copyright 2015 The etcd Authors
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package backend
-
-import "github.com/boltdb/bolt"
-
-var boltOpenOptions *bolt.Options = nil

+ 2 - 0
mvcc/backend/boltoption_solaris.go → mvcc/backend/boltoption_default.go

@@ -12,6 +12,8 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
+// +build !linux
+
 package backend
 package backend
 
 
 import "github.com/boltdb/bolt"
 import "github.com/boltdb/bolt"

+ 0 - 19
mvcc/backend/boltoption_freebsd.go

@@ -1,19 +0,0 @@
-// Copyright 2015 The etcd Authors
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package backend
-
-import "github.com/boltdb/bolt"
-
-var boltOpenOptions *bolt.Options = nil

+ 0 - 2
mvcc/backend/boltoption_unix.go → mvcc/backend/boltoption_linux.go

@@ -12,8 +12,6 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-// +build linux
-
 package backend
 package backend
 
 
 import (
 import (

+ 0 - 21
mvcc/backend/boltoption_windows.go

@@ -1,21 +0,0 @@
-// Copyright 2015 The etcd Authors
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package backend
-
-import "github.com/boltdb/bolt"
-
-// TODO: support syscall.MAP_POPULATE in windows.
-// Need upstream patch from boltdb/bolt.
-var boltOpenOptions *bolt.Options = nil