|
@ -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) |
|
|
} |
|
|
} |