Browse Source

refactoring

pull/1096/head
Chris Lu 5 years ago
parent
commit
46ed2ca902
  1. 2
      weed/server/master_server_handlers_admin.go
  2. 0
      weed/storage/backend/memory_map/memory_map.go
  3. 0
      weed/storage/backend/memory_map/memory_map_other.go
  4. 0
      weed/storage/backend/memory_map/memory_map_test.go
  5. 0
      weed/storage/backend/memory_map/memory_map_windows.go
  6. 0
      weed/storage/backend/memory_map/os_overloads/file_windows.go
  7. 0
      weed/storage/backend/memory_map/os_overloads/syscall_windows.go
  8. 0
      weed/storage/backend/memory_map/os_overloads/types_windows.go
  9. 2
      weed/storage/needle/needle_read_write.go
  10. 4
      weed/storage/volume_create_windows.go
  11. 2
      weed/storage/volume_read_write.go
  12. 2
      weed/storage/volume_super_block.go

2
weed/server/master_server_handlers_admin.go

@ -11,7 +11,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/storage/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/backend/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/needle"
"github.com/chrislusf/seaweedfs/weed/topology"
"github.com/chrislusf/seaweedfs/weed/util"

0
weed/storage/memory_map/memory_map.go → weed/storage/backend/memory_map/memory_map.go

0
weed/storage/memory_map/memory_map_other.go → weed/storage/backend/memory_map/memory_map_other.go

0
weed/storage/memory_map/memory_map_test.go → weed/storage/backend/memory_map/memory_map_test.go

0
weed/storage/memory_map/memory_map_windows.go → weed/storage/backend/memory_map/memory_map_windows.go

0
weed/storage/memory_map/os_overloads/file_windows.go → weed/storage/backend/memory_map/os_overloads/file_windows.go

0
weed/storage/memory_map/os_overloads/syscall_windows.go → weed/storage/backend/memory_map/os_overloads/syscall_windows.go

0
weed/storage/memory_map/os_overloads/types_windows.go → weed/storage/backend/memory_map/os_overloads/types_windows.go

2
weed/storage/needle/needle_read_write.go

@ -9,7 +9,7 @@ import (
"math"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/backend/memory_map"
. "github.com/chrislusf/seaweedfs/weed/storage/types"
"github.com/chrislusf/seaweedfs/weed/util"
)

4
weed/storage/volume_create_windows.go

@ -5,11 +5,11 @@ package storage
import (
"os"
"github.com/chrislusf/seaweedfs/weed/storage/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/backend/memory_map"
"golang.org/x/sys/windows"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage/memory_map/os_overloads"
"github.com/chrislusf/seaweedfs/weed/storage/backend/memory_map/os_overloads"
)
func createVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32) (*os.File, error) {

2
weed/storage/volume_read_write.go

@ -9,7 +9,7 @@ import (
"time"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/backend/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/needle"
. "github.com/chrislusf/seaweedfs/weed/storage/types"
)

2
weed/storage/volume_super_block.go

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/chrislusf/seaweedfs/weed/storage/memory_map"
"github.com/chrislusf/seaweedfs/weed/storage/backend/memory_map"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"

Loading…
Cancel
Save