浏览代码

fix(etcd): use . as the storage

/tmp is convienent but a little unexpected. Just use the cwd.
Brandon Philips 12 年之前
父节点
当前提交
5e8f9a57a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      etcd.go

+ 1 - 1
etcd.go

@@ -72,7 +72,7 @@ func init() {
 	flag.StringVar(&argInfo.ClientCertFile, "clientCert", "", "the cert file of the client")
 	flag.StringVar(&argInfo.ClientKeyFile, "clientKey", "", "the key file of the client")
 
-	flag.StringVar(&dirPath, "d", "/tmp/", "the directory to store log and snapshot")
+	flag.StringVar(&dirPath, "d", ".", "the directory to store log and snapshot")
 
 	flag.BoolVar(&ignore, "i", false, "ignore the old configuration, create a new node")