207
ctx context.Context,
208
request *p.InternalUpdateNamespaceRequest,
210
>
batch := m.session.NewBatch(gocql.LoggedBatch).WithContext(ctx)
211
>
batch.Query(templateUpdateNamespaceByNameQueryWithinBatchV2,
212
>
request.Namespace.Data,
213
>
request.Namespace.EncodingType.String(),
214
>
request.IsGlobal,
215
>
request.NotificationVersion,
216
>
constNamespacePartition,
217
>
request.Name,
218
>
)
219
>
m.updateMetadataBatch(batch, request.NotificationVersion)
220
>
221
>
previous := make(map[string]any)
222
>
applied, iter, err := m.session.MapExecuteBatchCAS(batch, previous)
223
>
if err != nil {
224
return gocql.ConvertError("UpdateNamespace", err)
225
}
227
229
return serviceerror.NewUnavailable("UpdateNamespace operation failed because of conditional failure.")
230
}