Skip to content

Commit 4f31429

Browse files
committed
SimpleCommandProcession allocates next command on success
1 parent 2d7a200 commit 4f31429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orm/Xtensive.Orm/Orm/Providers/CommandProcessing/SimpleCommandProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ void ISqlTaskProcessor.ProcessTask(SqlPersistTask task, CommandProcessorContext
3333
ValidateCommandParameters(part);
3434
context.ActiveCommand.AddPart(part);
3535
var affectedRowsCount = context.ActiveCommand.ExecuteNonQuery();
36-
if (task.ValidateRowCount && affectedRowsCount==0) {
36+
if (task.ValidateRowCount && affectedRowsCount == 0) {
3737
throw new VersionConflictException(string.Format(
3838
Strings.ExVersionOfEntityWithKeyXDiffersFromTheExpectedOne, task.EntityKey));
3939
}
4040
}
4141
finally {
4242
context.ActiveCommand.DisposeSafely();
4343
ReleaseCommand(context);
44-
AllocateCommand(context);
4544
}
45+
AllocateCommand(context);
4646
}
4747
}
4848

0 commit comments

Comments
 (0)