Browse Source

testing compilation with remove package

pull/2/head
Chris Lu 12 years ago
parent
commit
5071f528f6
  1. 0
      go/cmd/command.go
  2. 4
      go/cmd/export.go
  3. 2
      go/cmd/fix.go
  4. 6
      go/cmd/master.go
  5. 0
      go/cmd/shell.go
  6. 4
      go/cmd/upload.go
  7. 0
      go/cmd/version.go
  8. 4
      go/cmd/volume.go
  9. 0
      go/cmd/weed.go
  10. 4
      go/directory/file_id.go
  11. 6
      go/operation/allocate_volume.go
  12. 0
      go/operation/delete_content.go
  13. 4
      go/operation/lookup_volume_id.go
  14. 0
      go/operation/upload_content.go
  15. 6
      go/replication/volume_growth.go
  16. 4
      go/replication/volume_growth_test.go
  17. 0
      go/sequence/sequence.go
  18. 0
      go/storage/compact_map.go
  19. 4
      go/storage/compact_map_perf_test.go
  20. 0
      go/storage/compact_map_test.go
  21. 0
      go/storage/compress.go
  22. 0
      go/storage/crc.go
  23. 2
      go/storage/needle.go
  24. 2
      go/storage/needle_map.go
  25. 2
      go/storage/needle_read_write.go
  26. 0
      go/storage/replication_type.go
  27. 2
      go/storage/store.go
  28. 0
      go/storage/volume.go
  29. 0
      go/storage/volume_id.go
  30. 0
      go/storage/volume_info.go
  31. 0
      go/storage/volume_version.go
  32. 0
      go/topology/configuration.go
  33. 0
      go/topology/configuration_test.go
  34. 0
      go/topology/data_center.go
  35. 2
      go/topology/data_node.go
  36. 2
      go/topology/node.go
  37. 2
      go/topology/node_list.go
  38. 0
      go/topology/node_list_test.go
  39. 0
      go/topology/rack.go
  40. 2
      go/topology/topo_test.go
  41. 6
      go/topology/topology.go
  42. 4
      go/topology/topology_compact.go
  43. 2
      go/topology/topology_event_handling.go
  44. 0
      go/topology/topology_map.go
  45. 2
      go/topology/volume_layout.go
  46. 0
      go/topology/volume_location.go
  47. 0
      go/util/bytes.go
  48. 0
      go/util/config.go
  49. 0
      go/util/parse.go
  50. 0
      go/util/post.go
  51. 0
      test/sample.idx

0
weed/command.go → go/cmd/command.go

4
weed/export.go → go/cmd/export.go

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

2
weed/fix.go → go/cmd/fix.go

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

6
weed/master.go → go/cmd/master.go

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

0
weed/shell.go → go/cmd/shell.go

4
weed/upload.go → go/cmd/upload.go

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

0
weed/version.go → go/cmd/version.go

4
weed/volume.go → go/cmd/volume.go

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

0
weed/weed.go → go/cmd/weed.go

4
weed/directory/file_id.go → go/directory/file_id.go

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

6
weed/operation/allocate_volume.go → go/operation/allocate_volume.go

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

0
weed/operation/delete_content.go → go/operation/delete_content.go

4
weed/operation/lookup_volume_id.go → go/operation/lookup_volume_id.go

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

0
weed/operation/upload_content.go → go/operation/upload_content.go

6
weed/replication/volume_growth.go → go/replication/volume_growth.go

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

4
weed/replication/volume_growth_test.go → go/replication/volume_growth_test.go

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

0
weed/sequence/sequence.go → go/sequence/sequence.go

0
weed/storage/compact_map.go → go/storage/compact_map.go

4
weed/storage/compact_map_perf_test.go → go/storage/compact_map_perf_test.go

@ -3,13 +3,13 @@ package storage
import ( import (
"log" "log"
"os" "os"
"code.google.com/p/weed-fs/weed/util"
"code.google.com/p/weed-fs/go/util"
"testing" "testing"
) )
func TestMemoryUsage(t *testing.T) { func TestMemoryUsage(t *testing.T) {
indexFile, ie := os.OpenFile("sample.idx", os.O_RDWR|os.O_RDONLY, 0644)
indexFile, ie := os.OpenFile("../../test/sample.idx", os.O_RDWR|os.O_RDONLY, 0644)
if ie != nil { if ie != nil {
log.Fatalln(ie) log.Fatalln(ie)
} }

0
weed/storage/compact_map_test.go → go/storage/compact_map_test.go

0
weed/storage/compress.go → go/storage/compress.go

0
weed/storage/crc.go → go/storage/crc.go

2
weed/storage/needle.go → go/storage/needle.go

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

2
weed/storage/needle_map.go → go/storage/needle_map.go

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

2
weed/storage/needle_read_write.go → go/storage/needle_read_write.go

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

0
weed/storage/replication_type.go → go/storage/replication_type.go

2
weed/storage/store.go → go/storage/store.go

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

0
weed/storage/volume.go → go/storage/volume.go

0
weed/storage/volume_id.go → go/storage/volume_id.go

0
weed/storage/volume_info.go → go/storage/volume_info.go

0
weed/storage/volume_version.go → go/storage/volume_version.go

0
weed/topology/configuration.go → go/topology/configuration.go

0
weed/topology/configuration_test.go → go/topology/configuration_test.go

0
weed/topology/data_center.go → go/topology/data_center.go

2
weed/topology/data_node.go → go/topology/data_node.go

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

2
weed/topology/node.go → go/topology/node.go

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

2
weed/topology/node_list.go → go/topology/node_list.go

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

0
weed/topology/node_list_test.go → go/topology/node_list_test.go

0
weed/topology/rack.go → go/topology/rack.go

2
weed/topology/topo_test.go → go/topology/topo_test.go

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

6
weed/topology/topology.go → go/topology/topology.go

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

4
weed/topology/topology_compact.go → go/topology/topology_compact.go

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

2
weed/topology/topology_event_handling.go → go/topology/topology_event_handling.go

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

0
weed/topology/topology_map.go → go/topology/topology_map.go

2
weed/topology/volume_layout.go → go/topology/volume_layout.go

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

0
weed/topology/volume_location.go → go/topology/volume_location.go

0
weed/util/bytes.go → go/util/bytes.go

0
weed/util/config.go → go/util/config.go

0
weed/util/parse.go → go/util/parse.go

0
weed/util/post.go → go/util/post.go

0
weed/storage/sample.idx → test/sample.idx

Loading…
Cancel
Save