Hugo Arès | 47f15be | 2015-06-30 10:36:08 -0400 | [diff] [blame] | 1 | = gerrit index activate |
| 2 | |
| 3 | == NAME |
David Shevitz | cc187b3 | 2018-09-24 21:28:19 -0700 | [diff] [blame] | 4 | gerrit index activate - Activate the latest index version available. |
Hugo Arès | 47f15be | 2015-06-30 10:36:08 -0400 | [diff] [blame] | 5 | |
| 6 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 7 | [verse] |
Hugo Arès | 47f15be | 2015-06-30 10:36:08 -0400 | [diff] [blame] | 8 | -- |
Khai Do | d9cda09 | 2016-07-18 11:43:27 -0700 | [diff] [blame] | 9 | _ssh_ -p <port> <host> _gerrit index activate <INDEX>_ |
Hugo Arès | 47f15be | 2015-06-30 10:36:08 -0400 | [diff] [blame] | 10 | -- |
| 11 | |
| 12 | == DESCRIPTION |
| 13 | Gerrit supports online index schema upgrades. When starting Gerrit for the first |
| 14 | time after an upgrade that requires an index schema upgrade, the online indexer |
| 15 | will be started. If the schema upgrade is a success, the new index will be |
| 16 | activated and if it fails, a statement in the logs will be printed with the |
| 17 | number of successfully/failed indexed changes. |
| 18 | |
| 19 | This command allows to activate the latest index even if there were some |
| 20 | failures. |
| 21 | |
Hugo Arès | 47f15be | 2015-06-30 10:36:08 -0400 | [diff] [blame] | 22 | == ACCESS |
| 23 | Caller must be a member of the privileged 'Administrators' group. |
| 24 | |
| 25 | == SCRIPTING |
| 26 | This command is intended to be used in scripts. |
| 27 | |
Khai Do | d9cda09 | 2016-07-18 11:43:27 -0700 | [diff] [blame] | 28 | == OPTIONS |
| 29 | <INDEX>:: |
| 30 | The index to activate. |
| 31 | Currently supported values: |
| 32 | * changes |
| 33 | * accounts |
Borui Tao | ab5ca3b | 2018-04-16 20:07:20 -0400 | [diff] [blame] | 34 | * groups |
Khai Do | d9cda09 | 2016-07-18 11:43:27 -0700 | [diff] [blame] | 35 | |
| 36 | == EXAMPLES |
| 37 | Activate the latest change index: |
| 38 | |
| 39 | ---- |
David Shevitz | cc187b3 | 2018-09-24 21:28:19 -0700 | [diff] [blame] | 40 | $ ssh -p 29418 review.example.com gerrit index activate changes |
Khai Do | d9cda09 | 2016-07-18 11:43:27 -0700 | [diff] [blame] | 41 | ---- |
| 42 | |
Hugo Arès | 47f15be | 2015-06-30 10:36:08 -0400 | [diff] [blame] | 43 | GERRIT |
| 44 | ------ |
| 45 | Part of link:index.html[Gerrit Code Review] |
| 46 | |
| 47 | SEARCHBOX |
| 48 | --------- |