Merge "Restrict stream-events command to master"

This commit is contained in:
David Pursehouse 2015-06-25 14:36:27 +00:00 committed by Gerrit Code Review
commit 27fd5f4803

View File

@ -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;