mirror of https://github.com/apache/druid.git
better naming
This commit is contained in:
parent
bb1b037f87
commit
4a291fdf30
|
@ -46,7 +46,7 @@ public class SegmentMoveAction implements TaskAction<Void>
|
||||||
throw new ISE("Segments not covered by locks for task: %s", task.getId());
|
throw new ISE("Segments not covered by locks for task: %s", task.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
toolbox.getIndexerDBCoordinator().moveSegments(segments);
|
toolbox.getIndexerDBCoordinator().updateSegmentMetadata(segments);
|
||||||
|
|
||||||
// Emit metrics
|
// Emit metrics
|
||||||
final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder()
|
final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder()
|
||||||
|
|
|
@ -211,7 +211,7 @@ public class IndexerDBCoordinator
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void moveSegments(final Set<DataSegment> segments) throws IOException
|
public void updateSegmentMetadata(final Set<DataSegment> segments) throws IOException
|
||||||
{
|
{
|
||||||
dbi.inTransaction(
|
dbi.inTransaction(
|
||||||
new TransactionCallback<Void>()
|
new TransactionCallback<Void>()
|
||||||
|
@ -220,7 +220,7 @@ public class IndexerDBCoordinator
|
||||||
public Void inTransaction(Handle handle, TransactionStatus transactionStatus) throws Exception
|
public Void inTransaction(Handle handle, TransactionStatus transactionStatus) throws Exception
|
||||||
{
|
{
|
||||||
for(final DataSegment segment : segments) {
|
for(final DataSegment segment : segments) {
|
||||||
moveSegment(handle, segment);
|
updatePayload(handle, segment);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -256,7 +256,7 @@ public class IndexerDBCoordinator
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void moveSegment(final Handle handle, final DataSegment segment) throws IOException
|
private void updatePayload(final Handle handle, final DataSegment segment) throws IOException
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
handle.createStatement(
|
handle.createStatement(
|
||||||
|
|
Loading…
Reference in New Issue