Browse Source

Refactor project dir

pull/279/head
tnextday 10 years ago
parent
commit
e10dcc7542
  1. 3
      .gitignore
  2. 2
      Dockerfile.go_build
  3. 20
      Makefile
  4. 6
      README.md
  5. 6
      unmaintained/fix_dat/fix_dat.go
  6. 4
      unmaintained/see_idx/see_idx.go
  7. 0
      weed/compress/compression_test.go
  8. 0
      weed/compress/delta_binary_pack32.go
  9. 2
      weed/filer/cassandra_store/cassandra_store.go
  10. 0
      weed/filer/cassandra_store/schema.cql
  11. 2
      weed/filer/client_operations.go
  12. 0
      weed/filer/embedded_filer/design.txt
  13. 2
      weed/filer/embedded_filer/directory.go
  14. 4
      weed/filer/embedded_filer/directory_in_map.go
  15. 0
      weed/filer/embedded_filer/directory_test.go
  16. 4
      weed/filer/embedded_filer/filer_embedded.go
  17. 4
      weed/filer/embedded_filer/files_in_leveldb.go
  18. 0
      weed/filer/filer.go
  19. 2
      weed/filer/flat_namespace/flat_namespace_filer.go
  20. 0
      weed/filer/flat_namespace/flat_namespace_store.go
  21. 0
      weed/filer/redis_store/redis_store.go
  22. 0
      weed/glog/LICENSE
  23. 0
      weed/glog/README
  24. 0
      weed/glog/convenient_api.go
  25. 0
      weed/glog/glog.go
  26. 0
      weed/glog/glog_file.go
  27. 0
      weed/glog/glog_test.go
  28. 0
      weed/images/orientation.go
  29. 0
      weed/images/orientation_test.go
  30. 0
      weed/images/preprocess.go
  31. 2
      weed/images/resizing.go
  32. 0
      weed/images/resizing_test.go
  33. 0
      weed/images/sample1.jpg
  34. 7
      weed/main.go
  35. 4
      weed/operation/assign_file_id.go
  36. 2
      weed/operation/chunked_manifest.go
  37. 2
      weed/operation/compress.go
  38. 4
      weed/operation/delete_content.go
  39. 4
      weed/operation/list_masters.go
  40. 2
      weed/operation/lookup.go
  41. 2
      weed/operation/lookup_vid_cache.go
  42. 0
      weed/operation/lookup_vid_cache_test.go
  43. 4
      weed/operation/submit.go
  44. 4
      weed/operation/sync_volume.go
  45. 4
      weed/operation/upload_content.go
  46. 2
      weed/security/guard.go
  47. 2
      weed/security/jwt.go
  48. 0
      weed/sequence/memory_sequencer.go
  49. 0
      weed/sequence/sequence.go
  50. 0
      weed/stats/disk.go
  51. 0
      weed/stats/disk_notsupported.go
  52. 0
      weed/stats/disk_supported.go
  53. 0
      weed/stats/duration_counter.go
  54. 0
      weed/stats/duration_counter_test.go
  55. 0
      weed/stats/memory.go
  56. 0
      weed/stats/memory_notsupported.go
  57. 0
      weed/stats/memory_supported.go
  58. 0
      weed/stats/stats.go
  59. 4
      weed/storage/chunked_file_reader.go
  60. 2
      weed/storage/collection_settings.go
  61. 0
      weed/storage/collection_settings_test.go
  62. 0
      weed/storage/compact_map.go
  63. 4
      weed/storage/compact_map_perf_test.go
  64. 0
      weed/storage/compact_map_test.go
  65. 2
      weed/storage/crc.go
  66. 2
      weed/storage/disk_location.go
  67. 2
      weed/storage/file_id.go
  68. 8
      weed/storage/needle.go
  69. 2
      weed/storage/needle_map.go
  70. 4
      weed/storage/needle_map_boltdb.go
  71. 4
      weed/storage/needle_map_leveldb.go
  72. 2
      weed/storage/needle_map_memory.go
  73. 4
      weed/storage/needle_read_write.go
  74. 0
      weed/storage/replica_placement.go
  75. 0
      weed/storage/replica_placement_test.go
  76. 8
      weed/storage/store.go
  77. 2
      weed/storage/store_task.go
  78. 4
      weed/storage/store_task_cli.go
  79. 2
      weed/storage/store_task_replication.go
  80. 0
      weed/storage/store_task_vacuum.go
  81. 2
      weed/storage/store_vacuum.go
  82. 2
      weed/storage/volume.go
  83. 0
      weed/storage/volume_id.go
  84. 2
      weed/storage/volume_info.go
  85. 0
      weed/storage/volume_info_test.go
  86. 2
      weed/storage/volume_pure_reader.go
  87. 0
      weed/storage/volume_replicate_test.go
  88. 4
      weed/storage/volume_super_block.go
  89. 0
      weed/storage/volume_super_block_test.go
  90. 6
      weed/storage/volume_sync.go
  91. 0
      weed/storage/volume_ttl.go
  92. 0
      weed/storage/volume_ttl_test.go
  93. 2
      weed/storage/volume_vacuum.go
  94. 0
      weed/storage/volume_version.go
  95. 2
      weed/tools/read_index.go
  96. 4
      weed/topology/allocate_volume.go
  97. 4
      weed/topology/batch_operation.go
  98. 4
      weed/topology/cluster_commands.go
  99. 4
      weed/topology/collection.go
  100. 0
      weed/topology/configuration.go

3
.gitignore

@ -1,4 +1,4 @@
go/weed/.goxc*
weed/weedcmd/.goxc*
tags
*.swp
### OSX template
@ -75,3 +75,4 @@ crashlytics.properties
crashlytics-build.properties
test_data
bin

2
Dockerfile.go_build

@ -1,5 +1,5 @@
FROM cydev/go
RUN go get github.com/chrislusf/seaweedfs/go/weed
RUN go get github.com/chrislusf/seaweedfs/weed
EXPOSE 8080
EXPOSE 9333
VOLUME /data

20
Makefile

@ -1,7 +1,8 @@
BINARY = weed
OUT_DIR = bin
GO_FLAGS = -race #-v
SOURCE_DIR = ./go/weed/
GO_FLAGS = -race -v
SOURCE_DIR = ./weed
all: build
@ -15,14 +16,15 @@ deps:
go get $(GO_FLAGS) -d $(SOURCE_DIR)
fmt:
gofmt -w -s ./go/
gofmt -w -s $(SOURCE_DIR)
vet:
go vet ./go/...
go vet $(SOURCE_DIR)/...
build: deps fmt
go build $(GO_FLAGS) -o $(BINARY) $(SOURCE_DIR)
build: fmt
mkdir -p $(OUT_DIR)
go build $(GO_FLAGS) -o $(OUT_DIR)/$(BINARY) $(SOURCE_DIR)
linux: deps
mkdir -p linux
GOOS=linux GOARCH=amd64 go build $(GO_FLAGS) -o linux/$(BINARY) $(SOURCE_DIR)
linux:
mkdir -p $(OUT_DIR)
GOOS=linux GOARCH=amd64 go build $(GO_FLAGS) -o $(OUT_DIR)/$(BINARY)-linux-amd64 $(SOURCE_DIR)

6
README.md

@ -1,7 +1,7 @@
# SeaweedFS
[![Build Status](https://travis-ci.org/chrislusf/seaweedfs.svg?branch=master)](https://travis-ci.org/chrislusf/seaweedfs)
[![GoDoc](https://godoc.org/github.com/chrislusf/seaweedfs/go?status.svg)](https://godoc.org/github.com/chrislusf/seaweedfs/go)
[![GoDoc](https://godoc.org/github.com/chrislusf/seaweedfs?status.svg)](https://godoc.org/github.com/chrislusf/seaweedfs)
[![Wiki](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chrislusf/seaweedfs/wiki)
![SeaweedFS Logo](https://raw.githubusercontent.com/chrislusf/seaweedfs/master/note/seaweedfs.png)
@ -287,11 +287,11 @@ http://mercurial.selenic.com/downloads
step 3: download, compile, and install the project by executing the following command
go get github.com/chrislusf/seaweedfs/go/weed
go get github.com/chrislusf/seaweedfs/weed
once this is done, you should see the executable "weed" under $GOPATH/bin
step 4: after you modify your code locally, you could start a local build by calling "go install" under $GOPATH/src/github.com/chrislusf/seaweedfs/go/weed
step 4: after you modify your code locally, you could start a local build by calling "go install" under $GOPATH/src/github.com/chrislusf/seaweedfs/weed
## Disk Related topics ##

6
unmaintained/fix_dat/fix_dat.go

@ -8,9 +8,9 @@ import (
"path"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

4
unmaintained/see_idx/see_idx.go

@ -6,8 +6,8 @@ import (
"path"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
)
var (

0
go/compress/compression_test.go → weed/compress/compression_test.go

0
go/compress/delta_binary_pack32.go → weed/compress/delta_binary_pack32.go

2
go/filer/cassandra_store/cassandra_store.go → weed/filer/cassandra_store/cassandra_store.go

@ -3,7 +3,7 @@ package cassandra_store
import (
"fmt"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/gocql/gocql"
)

0
go/filer/cassandra_store/schema.cql → weed/filer/cassandra_store/schema.cql

2
go/filer/client_operations.go → weed/filer/client_operations.go

@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
"net/url"
)

0
go/filer/embedded_filer/design.txt → weed/filer/embedded_filer/design.txt

2
go/filer/embedded_filer/directory.go → weed/filer/embedded_filer/directory.go

@ -1,7 +1,7 @@
package embedded_filer
import (
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/weed/filer"
)
type DirectoryManager interface {

4
go/filer/embedded_filer/directory_in_map.go → weed/filer/embedded_filer/directory_in_map.go

@ -10,8 +10,8 @@ import (
"strings"
"sync"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/util"
)
var writeLock sync.Mutex //serialize changes to dir.log

0
go/filer/embedded_filer/directory_test.go → weed/filer/embedded_filer/directory_test.go

4
go/filer/embedded_filer/filer_embedded.go → weed/filer/embedded_filer/filer_embedded.go

@ -6,8 +6,8 @@ import (
"path/filepath"
"strings"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/operation"
)
type FilerEmbedded struct {

4
go/filer/embedded_filer/files_in_leveldb.go → weed/filer/embedded_filer/files_in_leveldb.go

@ -3,8 +3,8 @@ package embedded_filer
import (
"bytes"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/util"
)

0
go/filer/filer.go → weed/filer/filer.go

2
go/filer/flat_namespace/flat_namespace_filer.go → weed/filer/flat_namespace/flat_namespace_filer.go

@ -3,7 +3,7 @@ package flat_namespace
import (
"errors"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/weed/filer"
)
type FlatNamespaceFiler struct {

0
go/filer/flat_namespace/flat_namespace_store.go → weed/filer/flat_namespace/flat_namespace_store.go

0
go/filer/redis_store/redis_store.go → weed/filer/redis_store/redis_store.go

0
go/glog/LICENSE → weed/glog/LICENSE

0
go/glog/README → weed/glog/README

0
go/glog/convenient_api.go → weed/glog/convenient_api.go

0
go/glog/glog.go → weed/glog/glog.go

0
go/glog/glog_file.go → weed/glog/glog_file.go

0
go/glog/glog_test.go → weed/glog/glog_test.go

0
go/images/orientation.go → weed/images/orientation.go

0
go/images/orientation_test.go → weed/images/orientation_test.go

0
go/images/preprocess.go → weed/images/preprocess.go

2
go/images/resizing.go → weed/images/resizing.go

@ -7,7 +7,7 @@ import (
"image/jpeg"
"image/png"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/disintegration/imaging"
)

0
go/images/resizing_test.go → weed/images/resizing_test.go

0
go/images/sample1.jpg → weed/images/sample1.jpg

Before

Width: 2592  |  Height: 1936  |  Size: 2.0 MiB

After

Width: 2592  |  Height: 1936  |  Size: 2.0 MiB

7
weed/main.go

@ -0,0 +1,7 @@
package main
import "github.com/chrislusf/seaweedfs/weed/weedcmd"
func main() {
weedcmd.Main()
}

4
go/operation/assign_file_id.go → weed/operation/assign_file_id.go

@ -7,8 +7,8 @@ import (
"net/url"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type AssignResult struct {

2
go/operation/chunked_manifest.go → weed/operation/chunked_manifest.go

@ -5,7 +5,7 @@ import (
"errors"
"sort"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
type ChunkInfo struct {

2
go/operation/compress.go → weed/operation/compress.go

@ -7,7 +7,7 @@ import (
"io/ioutil"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
/*

4
go/operation/delete_content.go → weed/operation/delete_content.go

@ -10,8 +10,8 @@ import (
"net/http"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/util"
)
type DeleteResult struct {

4
go/operation/list_masters.go → weed/operation/list_masters.go

@ -3,8 +3,8 @@ package operation
import (
"encoding/json"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type ClusterStatusResult struct {

2
go/operation/lookup.go → weed/operation/lookup.go

@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
type Location struct {

2
go/operation/lookup_vid_cache.go → weed/operation/lookup_vid_cache.go

@ -5,7 +5,7 @@ import (
"strconv"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
"sync"
)

0
go/operation/lookup_vid_cache_test.go → weed/operation/lookup_vid_cache_test.go

4
go/operation/submit.go → weed/operation/submit.go

@ -10,8 +10,8 @@ import (
"strconv"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
)
type FilePart struct {

4
go/operation/sync_volume.go → weed/operation/sync_volume.go

@ -5,8 +5,8 @@ import (
"fmt"
"net/url"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type SyncVolumeResponse struct {

4
go/operation/upload_content.go → weed/operation/upload_content.go

@ -14,8 +14,8 @@ import (
"path/filepath"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
)
type UploadResult struct {

2
go/security/guard.go → weed/security/guard.go

@ -8,7 +8,7 @@ import (
"regexp"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
var (

2
go/security/jwt.go → weed/security/jwt.go

@ -6,7 +6,7 @@ import (
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
jwt "github.com/dgrijalva/jwt-go"
)

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

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

0
go/stats/disk.go → weed/stats/disk.go

0
go/stats/disk_notsupported.go → weed/stats/disk_notsupported.go

0
go/stats/disk_supported.go → weed/stats/disk_supported.go

0
go/stats/duration_counter.go → weed/stats/duration_counter.go

0
go/stats/duration_counter_test.go → weed/stats/duration_counter_test.go

0
go/stats/memory.go → weed/stats/memory.go

0
go/stats/memory_notsupported.go → weed/stats/memory_notsupported.go

0
go/stats/memory_supported.go → weed/stats/memory_supported.go

0
go/stats/stats.go → weed/stats/stats.go

4
go/storage/chunked_file_reader.go → weed/storage/chunked_file_reader.go

@ -7,8 +7,8 @@ import (
"net/http"
"sync"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

2
go/storage/collection_settings.go → weed/storage/collection_settings.go

@ -1,6 +1,6 @@
package storage
import "github.com/chrislusf/seaweedfs/go/weedpb"
import "github.com/chrislusf/seaweedfs/weed/weedpb"
type SettingKey int

0
go/storage/collection_settings_test.go → weed/storage/collection_settings_test.go

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

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

@ -5,8 +5,8 @@ import (
"os"
"testing"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
func TestMemoryUsage(t *testing.T) {

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

2
go/storage/crc.go → weed/storage/crc.go

@ -4,7 +4,7 @@ import (
"fmt"
"hash/crc32"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
var table = crc32.MakeTable(crc32.Castagnoli)

2
go/storage/disk_location.go → weed/storage/disk_location.go

@ -5,7 +5,7 @@ import (
"strings"
"sync"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
// DiskLocation is concurrent safe

2
go/storage/file_id.go → weed/storage/file_id.go

@ -4,7 +4,7 @@ import (
"errors"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
type FileId struct {

8
go/storage/needle.go → weed/storage/needle.go

@ -12,10 +12,10 @@ import (
"strings"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/images"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/images"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
)
const (

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

@ -6,7 +6,7 @@ import (
"os"
"sync"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
type NeedleMapType int

4
go/storage/needle_map_boltdb.go → weed/storage/needle_map_boltdb.go

@ -6,8 +6,8 @@ import (
"github.com/boltdb/bolt"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type BoltDbNeedleMap struct {

4
go/storage/needle_map_leveldb.go → weed/storage/needle_map_leveldb.go

@ -5,8 +5,8 @@ import (
"os"
"path/filepath"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/syndtr/goleveldb/leveldb"
)

2
go/storage/needle_map_memory.go → weed/storage/needle_map_memory.go

@ -4,7 +4,7 @@ import (
"io"
"os"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
type NeedleMap struct {

4
go/storage/needle_read_write.go → weed/storage/needle_read_write.go

@ -6,8 +6,8 @@ import (
"io"
"os"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
const (

0
go/storage/replica_placement.go → weed/storage/replica_placement.go

0
go/storage/replica_placement_test.go → weed/storage/replica_placement_test.go

8
go/storage/store.go → weed/storage/store.go

@ -11,10 +11,10 @@ import (
"encoding/json"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/go/weedpb"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/weedpb"
)
const (

2
go/storage/store_task.go → weed/storage/store_task.go

@ -7,7 +7,7 @@ import (
"sync"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
const (

4
go/storage/store_task_cli.go → weed/storage/store_task_cli.go

@ -6,8 +6,8 @@ import (
"net/url"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type TaskParams map[string]string

2
go/storage/store_task_replication.go → weed/storage/store_task_replication.go

@ -7,7 +7,7 @@ import (
"os"
"path"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
type ReplicaTask struct {

0
go/storage/store_task_vacuum.go → weed/storage/store_task_vacuum.go

2
go/storage/store_vacuum.go → weed/storage/store_vacuum.go

@ -4,7 +4,7 @@ import (
"fmt"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
func (s *Store) CheckCompactVolume(volumeIdString string, garbageThresholdString string) (error, bool) {

2
go/storage/volume.go → weed/storage/volume.go

@ -10,7 +10,7 @@ import (
"sync"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
type Volume struct {

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

2
go/storage/volume_info.go → weed/storage/volume_info.go

@ -4,7 +4,7 @@ import (
"fmt"
"sort"
"github.com/chrislusf/seaweedfs/go/weedpb"
"github.com/chrislusf/seaweedfs/weed/weedpb"
)
type VolumeInfo struct {

0
go/storage/volume_info_test.go → weed/storage/volume_info_test.go

2
go/storage/volume_pure_reader.go → weed/storage/volume_pure_reader.go

@ -6,7 +6,7 @@ import (
"sort"
"sync"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
type DirtyData struct {

0
go/storage/volume_replicate_test.go → weed/storage/volume_replicate_test.go

4
go/storage/volume_super_block.go → weed/storage/volume_super_block.go

@ -4,8 +4,8 @@ import (
"fmt"
"os"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
const (

0
go/storage/volume_super_block_test.go → weed/storage/volume_super_block_test.go

6
go/storage/volume_sync.go → weed/storage/volume_sync.go

@ -9,9 +9,9 @@ import (
"sort"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
)
// The volume sync with a master volume via 2 steps:

0
go/storage/volume_ttl.go → weed/storage/volume_ttl.go

0
go/storage/volume_ttl_test.go → weed/storage/volume_ttl_test.go

2
go/storage/volume_vacuum.go → weed/storage/volume_vacuum.go

@ -5,7 +5,7 @@ import (
"os"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
func (v *Volume) garbageLevel() float64 {

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

2
go/tools/read_index.go → weed/tools/read_index.go

@ -6,7 +6,7 @@ import (
"log"
"os"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/storage"
)
var (

4
go/topology/allocate_volume.go → weed/topology/allocate_volume.go

@ -6,8 +6,8 @@ import (
"fmt"
"net/url"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
type AllocateVolumeResult struct {

4
go/topology/batch_operation.go → weed/topology/batch_operation.go

@ -5,8 +5,8 @@ import (
"strconv"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
func BatchOperation(locationList *VolumeLocationList, path string, values url.Values) (isSuccess bool) {

4
go/topology/cluster_commands.go → weed/topology/cluster_commands.go

@ -2,8 +2,8 @@ package topology
import (
"github.com/chrislusf/raft"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
)
type MaxVolumeIdCommand struct {

4
go/topology/collection.go → weed/topology/collection.go

@ -3,8 +3,8 @@ package topology
import (
"fmt"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
type Collection struct {

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

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save