mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
testing compilation with remove package
This commit is contained in:
parent
55f2627fcf
commit
5071f528f6
|
@ -7,8 +7,8 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"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"
|
||||
"strings"
|
||||
"text/template"
|
|
@ -4,7 +4,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"path"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -5,9 +5,9 @@ import (
|
|||
"errors"
|
||||
"log"
|
||||
"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"
|
||||
"strconv"
|
||||
"strings"
|
|
@ -7,8 +7,8 @@ import (
|
|||
"net/url"
|
||||
"os"
|
||||
"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"
|
||||
)
|
||||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"mime"
|
||||
"net/http"
|
||||
"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"
|
||||
"strconv"
|
||||
"strings"
|
|
@ -2,8 +2,8 @@ package directory
|
|||
|
||||
import (
|
||||
"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"
|
||||
)
|
||||
|
|
@ -4,9 +4,9 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"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 {
|
|
@ -5,8 +5,8 @@ import (
|
|||
"errors"
|
||||
_ "fmt"
|
||||
"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 {
|
|
@ -4,9 +4,9 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"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"
|
||||
)
|
||||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"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"
|
||||
"time"
|
||||
)
|
|
@ -3,13 +3,13 @@ package storage
|
|||
import (
|
||||
"log"
|
||||
"os"
|
||||
"code.google.com/p/weed-fs/weed/util"
|
||||
"code.google.com/p/weed-fs/go/util"
|
||||
"testing"
|
||||
)
|
||||
|
||||
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 {
|
||||
log.Fatalln(ie)
|
||||
}
|
|
@ -7,7 +7,7 @@ import (
|
|||
"mime"
|
||||
"net/http"
|
||||
"path"
|
||||
"code.google.com/p/weed-fs/weed/util"
|
||||
"code.google.com/p/weed-fs/go/util"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
|
@ -3,7 +3,7 @@ package storage
|
|||
import (
|
||||
//"log"
|
||||
"os"
|
||||
"code.google.com/p/weed-fs/weed/util"
|
||||
"code.google.com/p/weed-fs/go/util"
|
||||
)
|
||||
|
||||
type NeedleMap struct {
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"code.google.com/p/weed-fs/weed/util"
|
||||
"code.google.com/p/weed-fs/go/util"
|
||||
)
|
||||
|
||||
const (
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io/ioutil"
|
||||
"log"
|
||||
"net/url"
|
||||
"code.google.com/p/weed-fs/weed/util"
|
||||
"code.google.com/p/weed-fs/go/util"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
|
@ -2,7 +2,7 @@ package topology
|
|||
|
||||
import (
|
||||
_ "fmt"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package topology
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
)
|
||||
|
||||
type NodeId string
|
|
@ -3,7 +3,7 @@ package topology
|
|||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
)
|
||||
|
||||
type NodeList struct {
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
|
@ -4,9 +4,9 @@ import (
|
|||
"errors"
|
||||
"io/ioutil"
|
||||
"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 {
|
|
@ -5,8 +5,8 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"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"
|
||||
)
|
||||
|
|
@ -3,7 +3,7 @@ package topology
|
|||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
"time"
|
||||
)
|
||||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"code.google.com/p/weed-fs/weed/storage"
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
)
|
||||
|
||||
type VolumeLayout struct {
|
Loading…
Reference in a new issue