mirror of
https://github.com/minio/minio.git
synced 2025-01-27 06:33:18 -05:00
Fixing documentation issues with expire
This commit is contained in:
parent
33ecba8e49
commit
ac595b1f2e
7
main.go
7
main.go
@ -58,7 +58,7 @@ var memoryCmd = cli.Command{
|
|||||||
minio mode {{.Name}} - {{.Description}}
|
minio mode {{.Name}} - {{.Description}}
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
minio mode {{.Name}} SIZE
|
minio mode {{.Name}} limit SIZE expire TIME
|
||||||
|
|
||||||
EXAMPLES:
|
EXAMPLES:
|
||||||
1. Limit maximum memory usage to 64MB with 1h expiration
|
1. Limit maximum memory usage to 64MB with 1h expiration
|
||||||
@ -167,7 +167,7 @@ func runMemory(c *cli.Context) {
|
|||||||
args = args.Tail()
|
args = args.Tail()
|
||||||
maxMemorySet = true
|
maxMemorySet = true
|
||||||
}
|
}
|
||||||
case "expiration":
|
case "expire":
|
||||||
{
|
{
|
||||||
if expirationSet {
|
if expirationSet {
|
||||||
Fatalf("Expiration should be set only once")
|
Fatalf("Expiration should be set only once")
|
||||||
@ -186,6 +186,9 @@ func runMemory(c *cli.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if maxMemorySet == false {
|
||||||
|
Fatalln("Memory limit must be set")
|
||||||
|
}
|
||||||
memoryDriver := server.MemoryFactory{
|
memoryDriver := server.MemoryFactory{
|
||||||
Config: apiServerConfig,
|
Config: apiServerConfig,
|
||||||
MaxMemory: maxMemory,
|
MaxMemory: maxMemory,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user