Merge branch 'cassandra-5.0' into trunk

This commit is contained in:
Stefan Miklosovic 2025-08-20 13:25:54 +02:00
commit cd7213f1f9
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
1 changed files with 2 additions and 3 deletions

View File

@ -549,9 +549,8 @@ public class CompactionTask extends AbstractCompactionTask
{
while (scanner.hasNext())
{
UnfilteredRowIterator partition = scanner.next();
try (WriteContext ctx = cfs.keyspace.getWriteHandler().createContextForIndexing())
try (UnfilteredRowIterator partition = scanner.next();
WriteContext ctx = cfs.keyspace.getWriteHandler().createContextForIndexing())
{
List<Index.Indexer> indexers = new ArrayList<>();
for (int i = 0; i < indexes.size(); i++)