提交 8c09e4d2 编写于 作者: D Davies Liu

fix in-memory cache

上级 21f365a4
......@@ -124,13 +124,16 @@ func mount(c *cli.Context) error {
Prefetch: c.Int("prefetch"),
BufferSize: c.Int("buffer-size") << 20,
CacheDir: filepath.Join(c.String("cache-dir"), format.UUID),
CacheDir: c.String("cache-dir"),
CacheSize: int64(c.Int("cache-size")),
FreeSpace: float32(c.Float64("free-space-ratio")),
CacheMode: os.FileMode(0600),
CacheFullBlock: !c.Bool("cache-partial-only"),
AutoCreate: true,
}
if chunkConf.CacheDir != "memory" {
chunkConf.CacheDir = filepath.Join(chunkConf.CacheDir, format.UUID)
}
blob, err := createStorage(format)
if err != nil {
logger.Fatalf("object storage: %s", err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册