mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
switch it back to chris's repo
This commit is contained in:
parent
57ec736941
commit
d56c748fa8
|
@ -5,7 +5,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
|
|
||||||
"net/url"
|
"net/url"
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var writeLock sync.Mutex //serialize changes to dir.log
|
var writeLock sync.Mutex //serialize changes to dir.log
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FilerEmbedded struct {
|
type FilerEmbedded struct {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package filer
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/syndtr/goleveldb/leveldb"
|
"github.com/syndtr/goleveldb/leveldb"
|
||||||
"github.com/syndtr/goleveldb/leveldb/util"
|
"github.com/syndtr/goleveldb/leveldb/util"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AssignResult struct {
|
type AssignResult struct {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DeleteResult struct {
|
type DeleteResult struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package operation
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ClusterStatusResult struct {
|
type ClusterStatusResult struct {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Location struct {
|
type Location struct {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FilePart struct {
|
type FilePart struct {
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UploadResult struct {
|
type UploadResult struct {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/tgulacsi/go-cdb"
|
"github.com/tgulacsi/go-cdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
var testIndexFilename string = "../../test/sample.idx"
|
var testIndexFilename string = "../../test/sample.idx"
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMemoryUsage(t *testing.T) {
|
func TestMemoryUsage(t *testing.T) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"hash/crc32"
|
"hash/crc32"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var table = crc32.MakeTable(crc32.Castagnoli)
|
var table = crc32.MakeTable(crc32.Castagnoli)
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FileId struct {
|
type FileId struct {
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/images"
|
"github.com/chrislusf/weed-fs/go/images"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NeedleMapper interface {
|
type NeedleMapper interface {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
proto "code.google.com/p/goprotobuf/proto"
|
proto "code.google.com/p/goprotobuf/proto"
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *Store) CheckCompactVolume(volumeIdString string, garbageThresholdString string) (error, bool) {
|
func (s *Store) CheckCompactVolume(volumeIdString string, garbageThresholdString string) (error, bool) {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Volume struct {
|
type Volume struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package storage
|
package storage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VolumeInfo struct {
|
type VolumeInfo struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (v *Volume) garbageLevel() float64 {
|
func (v *Volume) garbageLevel() float64 {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AllocateVolumeResult struct {
|
type AllocateVolumeResult struct {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package topology
|
package topology
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/goraft/raft"
|
"github.com/goraft/raft"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package topology
|
package topology
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Collection struct {
|
type Collection struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package topology
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DataNode struct {
|
type DataNode struct {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NodeId string
|
type NodeId string
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ReplicatedWrite(masterNode string, s *storage.Store, volumeId storage.VolumeId, needle *storage.Needle, r *http.Request) (size uint32, errorStatus string) {
|
func ReplicatedWrite(masterNode string, s *storage.Store, volumeId storage.VolumeId, needle *storage.Needle, r *http.Request) (size uint32, errorStatus string) {
|
||||||
|
|
|
@ -5,11 +5,11 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/sequence"
|
"github.com/chrislusf/weed-fs/go/sequence"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/goraft/raft"
|
"github.com/goraft/raft"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t *Topology) StartRefreshWritableVolumes(garbageThreshold string) {
|
func (t *Topology) StartRefreshWritableVolumes(garbageThreshold string) {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func batchVacuumVolumeCheck(vl *VolumeLayout, vid storage.VolumeId, locationlist *VolumeLocationList, garbageThreshold string) bool {
|
func batchVacuumVolumeCheck(vl *VolumeLayout, vid storage.VolumeId, locationlist *VolumeLocationList, garbageThreshold string) bool {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/sequence"
|
"github.com/chrislusf/weed-fs/go/sequence"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
var topologyLayout = `
|
var topologyLayout = `
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// mapping from volume to its locations, inverted from server to volume
|
// mapping from volume to its locations, inverted from server to volume
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFolderWritable(folder string) (err error) {
|
func TestFolderWritable(folder string) (err error) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/stats"
|
"github.com/chrislusf/weed-fs/go/stats"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Listener wraps a net.Listener, and gives a place to store the timeout
|
// Listener wraps a net.Listener, and gives a place to store the timeout
|
||||||
|
|
|
@ -14,9 +14,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BenchmarkOptions struct {
|
type BenchmarkOptions struct {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/mcqueenorama/weed-fs/go/weed/weed_server"
|
"github.com/chrislusf/weed-fs/go/weed/weed_server"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/mcqueenorama/weed-fs/go/weed/weed_server"
|
"github.com/chrislusf/weed-fs/go/weed/weed_server"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
|
|
||||||
"bazil.org/fuse"
|
"bazil.org/fuse"
|
||||||
"bazil.org/fuse/fs"
|
"bazil.org/fuse/fs"
|
||||||
"github.com/mcqueenorama/weed-fs/go/filer"
|
"github.com/chrislusf/weed-fs/go/filer"
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func runMount(cmd *Command, args []string) bool {
|
func runMount(cmd *Command, args []string) bool {
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/mcqueenorama/weed-fs/go/weed/weed_server"
|
"github.com/chrislusf/weed-fs/go/weed/weed_server"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cmdVersion = &Command{
|
var cmdVersion = &Command{
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/mcqueenorama/weed-fs/go/weed/weed_server"
|
"github.com/chrislusf/weed-fs/go/weed/weed_server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestXYZ(t *testing.T) {
|
func TestXYZ(t *testing.T) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"unicode"
|
"unicode"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
var IsDebug *bool
|
var IsDebug *bool
|
||||||
|
|
|
@ -10,11 +10,11 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/stats"
|
"github.com/chrislusf/weed-fs/go/stats"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var serverStats *stats.ServerStats
|
var serverStats *stats.ServerStats
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/filer"
|
"github.com/chrislusf/weed-fs/go/filer"
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FilerServer struct {
|
type FilerServer struct {
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/syndtr/goleveldb/leveldb"
|
"github.com/syndtr/goleveldb/leveldb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package weed_server
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/sequence"
|
"github.com/chrislusf/weed-fs/go/sequence"
|
||||||
"github.com/mcqueenorama/weed-fs/go/topology"
|
"github.com/chrislusf/weed-fs/go/topology"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
"github.com/goraft/raft"
|
"github.com/goraft/raft"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/stats"
|
"github.com/chrislusf/weed-fs/go/stats"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (ms *MasterServer) lookupVolumeId(vids []string, collection string) (volumeLocations map[string]operation.LookupResult) {
|
func (ms *MasterServer) lookupVolumeId(vids []string, collection string) (volumeLocations map[string]operation.LookupResult) {
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
proto "code.google.com/p/goprotobuf/proto"
|
proto "code.google.com/p/goprotobuf/proto"
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/topology"
|
"github.com/chrislusf/weed-fs/go/topology"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (ms *MasterServer) collectionDeleteHandler(w http.ResponseWriter, r *http.Request) {
|
func (ms *MasterServer) collectionDeleteHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -14,8 +14,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/topology"
|
"github.com/chrislusf/weed-fs/go/topology"
|
||||||
"github.com/goraft/raft"
|
"github.com/goraft/raft"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/goraft/raft"
|
"github.com/goraft/raft"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VolumeServer struct {
|
type VolumeServer struct {
|
||||||
|
|
|
@ -9,12 +9,12 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/images"
|
"github.com/chrislusf/weed-fs/go/images"
|
||||||
"github.com/mcqueenorama/weed-fs/go/operation"
|
"github.com/chrislusf/weed-fs/go/operation"
|
||||||
"github.com/mcqueenorama/weed-fs/go/stats"
|
"github.com/chrislusf/weed-fs/go/stats"
|
||||||
"github.com/mcqueenorama/weed-fs/go/storage"
|
"github.com/chrislusf/weed-fs/go/storage"
|
||||||
"github.com/mcqueenorama/weed-fs/go/topology"
|
"github.com/chrislusf/weed-fs/go/topology"
|
||||||
)
|
)
|
||||||
|
|
||||||
var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")
|
var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
"github.com/mcqueenorama/weed-fs/go/stats"
|
"github.com/chrislusf/weed-fs/go/stats"
|
||||||
"github.com/mcqueenorama/weed-fs/go/util"
|
"github.com/chrislusf/weed-fs/go/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (vs *VolumeServer) statusHandler(w http.ResponseWriter, r *http.Request) {
|
func (vs *VolumeServer) statusHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package weed_server
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/mcqueenorama/weed-fs/go/glog"
|
"github.com/chrislusf/weed-fs/go/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (vs *VolumeServer) vacuumVolumeCheckHandler(w http.ResponseWriter, r *http.Request) {
|
func (vs *VolumeServer) vacuumVolumeCheckHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in a new issue