@@ -286,6 +286,7 @@ func getFakeStorageDriverConfig(name string) drivers.FakeStorageDriverConfig {
286286 CommonStorageDriverConfig: &drivers.CommonStorageDriverConfig{
287287 Version: drivers.ConfigVersion,
288288 StorageDriverName: config.FakeStorageDriverName,
289+ Flags: make(map[string]string),
289290 },
290291 Protocol: config.File,
291292 Pools: testutils.GenerateFakePools(2),
@@ -1475,6 +1476,27 @@ func TestBootstrapSubordinateVolumesConcurrentCore(t *testing.T) {
14751476
14761477// Backend tests
14771478
1479+ func TestValidateAndCreateBackendFromConfig_SetsConcurrentFlag(t *testing.T) {
1480+ db.Initialize()
1481+ o := getConcurrentOrchestrator()
1482+
1483+ fakeConfig := getFakeStorageDriverConfig("test-backend")
1484+ configJSON, err := fakeConfig.Marshal()
1485+ require.NoError(t, err)
1486+
1487+ backend, err := o.validateAndCreateBackendFromConfig(testCtx, string(configJSON), "", "")
1488+
1489+ require.NoError(t, err)
1490+ require.NotNil(t, backend)
1491+
1492+ // Verify the concurrent flag was set in the backend's common config
1493+ commonConfig := backend.Driver().GetCommonConfig(testCtx)
1494+ require.NotNil(t, commonConfig.Flags)
1495+ assert.Equal(t, "true", commonConfig.Flags[FlagConcurrent])
1496+
1497+ persistenceCleanup(t, o)
1498+ }
1499+
14781500func TestGetBackendConcurrentCore(t *testing.T) {
14791501 tests := []struct {
14801502 name string
0 commit comments