From e4d602b7ec3959e8caec57e11545305ed14d2cb5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 22 Dec 2020 03:16:18 +0000 Subject: [PATCH] improve stringbuilder needed size estimation --- OpenSim/Data/MySQL/MySQLSimulationData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 2b7e895f20..6ae66d7505 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs @@ -294,7 +294,7 @@ namespace OpenSim.Data.MySQL string sqlparams; if (uuids.Count > 1) { - StringBuilder sb = new StringBuilder(uuids.Count * 37); + StringBuilder sb = new StringBuilder(uuids.Count * 39 + 5); sb.Append("IN ("); for(int i = 0; i < uuids.Count - 1; ++i ) {