Explorar o código

Merge pull request #9093 from spzala/getrevision

DocCommand: use regex wildcard
Gyuho Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
a7d387cc42
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Documentation/op-guide/maintenance.md

+ 1 - 1
Documentation/op-guide/maintenance.md

@@ -87,7 +87,7 @@ Removing excessive keyspace data and defragmenting the backend database will put
 
 ```sh
 # get current revision
-$ rev=$(ETCDCTL_API=3 etcdctl --endpoints=:2379 endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9]*')
+$ rev=$(ETCDCTL_API=3 etcdctl --endpoints=:2379 endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9].*')
 # compact away all old revisions
 $ ETCDCTL_API=3 etcdctl compact $rev
 compacted revision 1516