diff --git a/core/src/com/cloud/agent/transport/Request.java b/core/src/com/cloud/agent/transport/Request.java index 298eeed1107..c51353c5c5e 100755 --- a/core/src/com/cloud/agent/transport/Request.java +++ b/core/src/com/cloud/agent/transport/Request.java @@ -122,6 +122,7 @@ public class Request { _seq = seq; _agentId = agentId; _mgmtId = mgmtId; + setInSequence(cmds); } protected Request(Version ver, long seq, long agentId, long mgmtId, short flags, final String content) { @@ -140,6 +141,18 @@ public class Request { setRevertOnError(revert); } + protected void setInSequence(Command[] cmds) { + if (cmds == null) { + return; + } + for (Command cmd : cmds) { + if (cmd.executeInSequence()) { + setInSequence(true); + break; + } + } + } + protected Request(final Request that, final Command[] cmds) { this._ver = that._ver; this._seq = that._seq;