Remove temporary INFLUXDB_ALPHA write path enable flag
Real thing exists now.pull/2725/head
parent
f7d90cf94e
commit
497cd506f9
|
@ -2,7 +2,6 @@ package cluster
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -119,19 +118,6 @@ func (w *PointsWriter) Close() error {
|
|||
// created before returning the mapping.
|
||||
func (w *PointsWriter) MapShards(wp *WritePointsRequest) (*ShardMapping, error) {
|
||||
|
||||
// Stub out the MapShards call to return a single node/shard setup
|
||||
if os.Getenv("INFLUXDB_ALPHA1") != "" {
|
||||
sm := NewShardMapping()
|
||||
sh := &meta.ShardInfo{
|
||||
ID: uint64(1),
|
||||
OwnerIDs: []uint64{uint64(1)},
|
||||
}
|
||||
for _, p := range wp.Points {
|
||||
sm.MapPoint(sh, p)
|
||||
}
|
||||
return sm, nil
|
||||
}
|
||||
|
||||
// holds the start time ranges for required shard groups
|
||||
timeRanges := map[time.Time]*meta.ShardGroupInfo{}
|
||||
|
||||
|
|
Loading…
Reference in New Issue