Merge "Restrict stream-events command to master"
This commit is contained in:
commit
27fd5f4803
@ -14,7 +14,7 @@
|
||||
|
||||
package com.google.gerrit.sshd.commands;
|
||||
|
||||
import static com.google.gerrit.sshd.CommandMetaData.Mode.MASTER_OR_SLAVE;
|
||||
import static com.google.gerrit.sshd.CommandMetaData.Mode.MASTER;
|
||||
|
||||
import com.google.gerrit.common.EventListener;
|
||||
import com.google.gerrit.common.EventSource;
|
||||
@ -40,7 +40,7 @@ import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
@RequiresCapability(GlobalCapability.STREAM_EVENTS)
|
||||
@CommandMetaData(name = "stream-events", description = "Monitor events occurring in real time",
|
||||
runsAt = MASTER_OR_SLAVE)
|
||||
runsAt = MASTER)
|
||||
final class StreamEvents extends BaseCommand {
|
||||
/** Maximum number of events that may be queued up for each connection. */
|
||||
private static final int MAX_EVENTS = 128;
|
||||
|
Loading…
x
Reference in New Issue
Block a user