Skip to content

Commit a680857

Browse files
committed
Add a comment..
1 parent ff576c2 commit a680857

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/provider/foundationdb/IndexingCommon.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
@API(API.Status.INTERNAL)
5151
public class IndexingCommon {
52-
// TODO? get uuid from caller to allow lock takeover
5352
private final UUID uuid = UUID.randomUUID();
5453

5554
@Nonnull private final FDBDatabaseRunner runner;

fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/provider/foundationdb/IndexingSubspaces.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ public static void eraseAllIndexingDataButTheLock(@Nonnull FDBRecordContext cont
209209
eraseAllIndexingScrubbingData(context, store, index);
210210
context.clear(Range.startsWith(indexBuildScannedRecordsSubspace(store, index).pack()));
211211
context.clear(Range.startsWith(indexBuildTypeSubspace(store, index).pack()));
212+
// The heartbeats, unlike the sync lock, may be erased here. If needed, an appropriate heartbeat will be set after the clearing within the same transaction.
212213
context.clear(Range.startsWith(indexheartbeatSubspace(store, index).pack()));
213214
}
214215
}

0 commit comments

Comments
 (0)