Blame SOURCES/etcdmain-Add-max-snapshots-and-max-wals-to-help.patch

12ae81
From ddc4f8bd4501826e4c551952a96fcca6dd25bf64 Mon Sep 17 00:00:00 2001
12ae81
From: Yiqiao Pu <ypu@redhat.com>
12ae81
Date: Wed, 18 Nov 2015 17:54:46 +0800
12ae81
Subject: [PATCH] etcdmain: Add max-snapshots and max-wals to help
12ae81
12ae81
Based on the configuration doc, seems these two flags are missing
12ae81
in the help. So add them and the descriptions are from config.go in
12ae81
the same directory.
12ae81
12ae81
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
12ae81
---
12ae81
 etcdmain/help.go | 6 ++++++
12ae81
 1 file changed, 6 insertions(+)
12ae81
12ae81
diff --git a/etcdmain/help.go b/etcdmain/help.go
12ae81
index e233320..fd23d59 100644
12ae81
--- a/etcdmain/help.go
12ae81
+++ b/etcdmain/help.go
12ae81
@@ -14,6 +14,8 @@
12ae81
 
12ae81
 package etcdmain
12ae81
 
12ae81
+import "strconv"
12ae81
+
12ae81
 var (
12ae81
 	usageline = `usage: etcd [flags]
12ae81
        start an etcd server
12ae81
@@ -43,6 +45,10 @@ member flags:
12ae81
 		list of URLs to listen on for peer traffic.
12ae81
 	--listen-client-urls 'http://localhost:2379,http://localhost:4001'
12ae81
 		list of URLs to listen on for client traffic.
12ae81
+	--max-snapshots '` + strconv.Itoa(defaultMaxSnapshots) + `'
12ae81
+		maximum number of snapshot files to retain (0 is unlimited).
12ae81
+	--max-wals '` + strconv.Itoa(defaultMaxWALs) + `'
12ae81
+		maximum number of wal files to retain (0 is unlimited).
12ae81
 	-cors ''
12ae81
 		comma-separated whitelist of origins for CORS (cross-origin resource sharing).
12ae81
 
12ae81
-- 
12ae81
1.9.3
12ae81