remove paranoia mode in top level Pilosa

This commit is contained in:
Matt Jaffee 2020-12-28 15:25:13 -06:00
parent 757c8a86b5
commit 21c67352af
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
4 changed files with 1 additions and 44 deletions

View file

@ -17,7 +17,7 @@ RELEASE ?= 0
RELEASE_ENABLED = $(subst 0,,$(RELEASE))
BUILD_TAGS += $(if $(RELEASE_ENABLED),release)
BUILD_TAGS += shardwidth$(SHARD_WIDTH)
TEST_TAGS = roaringparanoia paranoia
TEST_TAGS = roaringparanoia
define LICENSE_HASH_CODE
head -13 $1 | sed -e 's/Copyright 20[0-9][0-9]/Copyright 20XX/g' | shasum | cut -f 1 -d " "
endef

View file

@ -1,19 +0,0 @@
// Copyright 2020 Pilosa Corp.
//
// 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.
// +build !paranoia
package pilosa
const paranoia = false

View file

@ -1,19 +0,0 @@
// Copyright 2020 Pilosa Corp.
//
// 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.
// +build paranoia
package pilosa
const paranoia = true

5
row.go
View file

@ -301,11 +301,6 @@ func (r *Row) Union(others ...*Row) *Row {
toProcess := make([]*rowSegment, 0, len(others)+1)
var output []rowSegment
for _, other := range others {
if paranoia { // nolint:staticcheck
// TODO I think there is a good check we can do here, but
// it's nontrivial to check whether two rows are
// compatible because of foreign indexes and such.
}
if len(other.segments) > 0 {
segments = append(segments, other.segments)
}