Skip to content

Commit de92c75

Browse files
committed
CommandFactory: Persist parts creation gets node config from UpgradeContext if it exists
1 parent c5b61a6 commit de92c75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orm/Xtensive.Orm/Orm/Providers/CommandProcessing/CommandFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public virtual IEnumerable<CommandPart> CreatePersistParts(SqlPersistTask task,
4747
ArgumentValidator.EnsureArgumentNotNull(task, "task");
4848
ArgumentValidator.EnsureArgumentNotNullOrEmpty(parameterNamePrefix, "parameterNamePrefix");
4949

50-
var nodeConfiguration = Session.StorageNode.Configuration;
51-
var shareStorageNodesOverNodes = Session.Domain.Configuration.ShareStorageSchemaOverNodes;
50+
var upgradeContext = Upgrade.UpgradeContext.GetCurrent(Session.Domain.UpgradeContextCookie);
51+
var nodeConfiguration = upgradeContext != null ? upgradeContext.NodeConfiguration : Session.StorageNode.Configuration;
5252

5353
var result = new List<CommandPart>(task.RequestSequence.Count);
5454
int parameterIndex = 0;

0 commit comments

Comments
 (0)