mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Lost the in sequence flag
This commit is contained in:
parent
86e51eb536
commit
c162c617c2
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user