@@ -1230,16 +1230,16 @@ bool NKikimr::NStorage::DeriveStorageConfig(const NKikimrConfig::TAppConfig& app
12301230 if (domains.DomainSize () == 1 ) {
12311231 const auto & domain = domains.GetDomain (0 );
12321232
1233- auto updateConfig = [&](bool needMerge, auto *to, const auto & from) {
1233+ auto updateConfig = [&](bool needMerge, auto *to, const auto & from, const char *entity ) {
12341234 if (needMerge) {
1235- char prefix [TActorId::MaxServiceIDLength] = {0 };
1236- auto toInfo = BuildStateStorageInfo (prefix, *to) ;
1237- auto fromInfo = BuildStateStorageInfo (prefix, from );
1238- if (toInfo-> NToSelect != fromInfo-> NToSelect ) {
1239- *errorReason = " NToSelect differs " ;
1240- return false ;
1241- } else if (toInfo-> SelectAllReplicas () != fromInfo-> SelectAllReplicas ()) {
1242- *errorReason = " StateStorage rings differ " ;
1235+ char toPrefix [TActorId::MaxServiceIDLength] = {0 };
1236+ char fromPrefix[TActorId::MaxServiceIDLength] = { 0 } ;
1237+ auto toInfo = BuildStateStorageInfo (toPrefix, *to );
1238+ auto fromInfo = BuildStateStorageInfo (fromPrefix, from);
1239+ if (toInfo-> NToSelect != fromInfo-> NToSelect || toInfo-> SelectAllReplicas () != fromInfo-> SelectAllReplicas ()) {
1240+ *errorReason = TStringBuilder () << entity << " NToSelect/rings differs "
1241+ << " from# " << SingleLineProto (from)
1242+ << " to# " << SingleLineProto (*to) ;
12431243 return false ;
12441244 }
12451245 }
@@ -1254,9 +1254,9 @@ bool NKikimr::NStorage::DeriveStorageConfig(const NKikimrConfig::TAppConfig& app
12541254 const bool hadStateStorageConfig = config->HasStateStorageConfig ();
12551255 const bool hadStateStorageBoardConfig = config->HasStateStorageBoardConfig ();
12561256 const bool hadSchemeBoardConfig = config->HasSchemeBoardConfig ();
1257- if (!updateConfig (hadStateStorageConfig, config->MutableStateStorageConfig (), ss) ||
1258- !updateConfig (hadStateStorageBoardConfig, config->MutableStateStorageBoardConfig (), ss) ||
1259- !updateConfig (hadSchemeBoardConfig, config->MutableSchemeBoardConfig (), ss)) {
1257+ if (!updateConfig (hadStateStorageConfig, config->MutableStateStorageConfig (), ss, " StateStorage " ) ||
1258+ !updateConfig (hadStateStorageBoardConfig, config->MutableStateStorageBoardConfig (), ss, " StateStorageBoard " ) ||
1259+ !updateConfig (hadSchemeBoardConfig, config->MutableSchemeBoardConfig (), ss, " SchemeBoard " )) {
12601260 return false ;
12611261 }
12621262 break ;
0 commit comments