Browse Source

testing new directory structure

pull/2/head
Chris Lu 12 years ago
parent
commit
55f2627fcf
  1. 4
      weed/directory/file_id.go
  2. 4
      weed/export.go
  3. 2
      weed/fix.go
  4. 6
      weed/master.go
  5. 6
      weed/operation/allocate_volume.go
  6. 4
      weed/operation/lookup_volume_id.go
  7. 6
      weed/replication/volume_growth.go
  8. 4
      weed/replication/volume_growth_test.go
  9. 2
      weed/storage/compact_map_perf_test.go
  10. 2
      weed/storage/needle.go
  11. 2
      weed/storage/needle_map.go
  12. 2
      weed/storage/needle_read_write.go
  13. 2
      weed/storage/store.go
  14. 2
      weed/topology/data_node.go
  15. 2
      weed/topology/node.go
  16. 2
      weed/topology/node_list.go
  17. 2
      weed/topology/topo_test.go
  18. 6
      weed/topology/topology.go
  19. 4
      weed/topology/topology_compact.go
  20. 2
      weed/topology/topology_event_handling.go
  21. 2
      weed/topology/volume_layout.go
  22. 4
      weed/upload.go
  23. 4
      weed/volume.go

4
weed/directory/file_id.go

@ -2,8 +2,8 @@ package directory
import ( import (
"encoding/hex" "encoding/hex"
"weed/storage"
"weed/util"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/util"
"strings" "strings"
) )

4
weed/export.go

@ -7,8 +7,8 @@ import (
"log" "log"
"os" "os"
"path" "path"
"weed/directory"
"weed/storage"
"code.google.com/p/weed-fs/weed/directory"
"code.google.com/p/weed-fs/weed/storage"
"strconv" "strconv"
"strings" "strings"
"text/template" "text/template"

2
weed/fix.go

@ -4,7 +4,7 @@ import (
"log" "log"
"os" "os"
"path" "path"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
"strconv" "strconv"
) )

6
weed/master.go

@ -5,9 +5,9 @@ import (
"errors" "errors"
"log" "log"
"net/http" "net/http"
"weed/replication"
"weed/storage"
"weed/topology"
"code.google.com/p/weed-fs/weed/replication"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/topology"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"

6
weed/operation/allocate_volume.go

@ -4,9 +4,9 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"
"weed/storage"
"weed/topology"
"weed/util"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/topology"
"code.google.com/p/weed-fs/weed/util"
) )
type AllocateVolumeResult struct { type AllocateVolumeResult struct {

4
weed/operation/lookup_volume_id.go

@ -5,8 +5,8 @@ import (
"errors" "errors"
_ "fmt" _ "fmt"
"net/url" "net/url"
"weed/storage"
"weed/util"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/util"
) )
type Location struct { type Location struct {

6
weed/replication/volume_growth.go

@ -4,9 +4,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/operation"
"weed/storage"
"weed/topology"
"code.google.com/p/weed-fs/weed/operation"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/topology"
"sync" "sync"
) )

4
weed/replication/volume_growth_test.go

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage"
"weed/topology"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/topology"
"testing" "testing"
"time" "time"
) )

2
weed/storage/compact_map_perf_test.go

@ -3,7 +3,7 @@ package storage
import ( import (
"log" "log"
"os" "os"
"weed/util"
"code.google.com/p/weed-fs/weed/util"
"testing" "testing"
) )

2
weed/storage/needle.go

@ -7,7 +7,7 @@ import (
"mime" "mime"
"net/http" "net/http"
"path" "path"
"weed/util"
"code.google.com/p/weed-fs/weed/util"
"strconv" "strconv"
"strings" "strings"
) )

2
weed/storage/needle_map.go

@ -3,7 +3,7 @@ package storage
import ( import (
//"log" //"log"
"os" "os"
"weed/util"
"code.google.com/p/weed-fs/weed/util"
) )
type NeedleMap struct { type NeedleMap struct {

2
weed/storage/needle_read_write.go

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"io" "io"
"os" "os"
"weed/util"
"code.google.com/p/weed-fs/weed/util"
) )
const ( const (

2
weed/storage/store.go

@ -6,7 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net/url" "net/url"
"weed/util"
"code.google.com/p/weed-fs/weed/util"
"strconv" "strconv"
"strings" "strings"
) )

2
weed/topology/data_node.go

@ -2,7 +2,7 @@ package topology
import ( import (
_ "fmt" _ "fmt"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
"strconv" "strconv"
) )

2
weed/topology/node.go

@ -2,7 +2,7 @@ package topology
import ( import (
"fmt" "fmt"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
) )
type NodeId string type NodeId string

2
weed/topology/node_list.go

@ -3,7 +3,7 @@ package topology
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
) )
type NodeList struct { type NodeList struct {

2
weed/topology/topo_test.go

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
"testing" "testing"
"time" "time"
) )

6
weed/topology/topology.go

@ -4,9 +4,9 @@ import (
"errors" "errors"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"weed/directory"
"weed/sequence"
"weed/storage"
"code.google.com/p/weed-fs/weed/directory"
"code.google.com/p/weed-fs/weed/sequence"
"code.google.com/p/weed-fs/weed/storage"
) )
type Topology struct { type Topology struct {

4
weed/topology/topology_compact.go

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"net/url" "net/url"
"weed/storage"
"weed/util"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/weed/util"
"time" "time"
) )

2
weed/topology/topology_event_handling.go

@ -3,7 +3,7 @@ package topology
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
"time" "time"
) )

2
weed/topology/volume_layout.go

@ -4,7 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage"
"code.google.com/p/weed-fs/weed/storage"
) )
type VolumeLayout struct { type VolumeLayout struct {

4
weed/upload.go

@ -7,8 +7,8 @@ import (
"net/url" "net/url"
"os" "os"
"path" "path"
"weed/operation"
"weed/util"
"code.google.com/p/weed-fs/weed/operation"
"code.google.com/p/weed-fs/weed/util"
"strconv" "strconv"
) )

4
weed/volume.go

@ -7,8 +7,8 @@ import (
"mime" "mime"
"net/http" "net/http"
"os" "os"
"weed/operation"
"weed/storage"
"code.google.com/p/weed-fs/weed/operation"
"code.google.com/p/weed-fs/weed/storage"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"

Loading…
Cancel
Save