Remove temporary INFLUXDB_ALPHA write path enable flag

Real thing exists now.
pull/2725/head
Jason Wilder 2015-06-01 16:45:08 -06:00
parent f7d90cf94e
commit 497cd506f9
1 changed files with 0 additions and 14 deletions

View File

@ -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{}