blob: 418e872bcc15640db42234bcc098215ff184dc79 [file] [log] [blame]
Hugo Arès47f15be2015-06-30 10:36:08 -04001= gerrit index activate
2
3== NAME
4gerrit index activate - Activate the latest index version available
5
6== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Hugo Arès47f15be2015-06-30 10:36:08 -04008--
Khai Dod9cda092016-07-18 11:43:27 -07009_ssh_ -p <port> <host> _gerrit index activate <INDEX>_
Hugo Arès47f15be2015-06-30 10:36:08 -040010--
11
12== DESCRIPTION
13Gerrit supports online index schema upgrades. When starting Gerrit for the first
14time after an upgrade that requires an index schema upgrade, the online indexer
15will be started. If the schema upgrade is a success, the new index will be
16activated and if it fails, a statement in the logs will be printed with the
17number of successfully/failed indexed changes.
18
19This command allows to activate the latest index even if there were some
20failures.
21
Hugo Arès47f15be2015-06-30 10:36:08 -040022== ACCESS
23Caller must be a member of the privileged 'Administrators' group.
24
25== SCRIPTING
26This command is intended to be used in scripts.
27
Khai Dod9cda092016-07-18 11:43:27 -070028== OPTIONS
29<INDEX>::
30 The index to activate.
31 Currently supported values:
32 * changes
33 * accounts
34
35== EXAMPLES
36Activate the latest change index:
37
38----
39 $ ssh -p 29418 review.example.com gerrit activate changes
40----
41
Hugo Arès47f15be2015-06-30 10:36:08 -040042GERRIT
43------
44Part of link:index.html[Gerrit Code Review]
45
46SEARCHBOX
47---------