Lost the in sequence flag

This commit is contained in:
Alex Huang 2011-02-04 11:01:23 -08:00
parent 86e51eb536
commit c162c617c2

View File

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