better naming

This commit is contained in:
Xavier Léauté 2013-12-11 17:25:17 -08:00
parent bb1b037f87
commit 4a291fdf30
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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(