@fluidframework/runtime-utils 2.0.0-internal.1.4.4 → 2.0.0-internal.2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,6 @@ import {
12
12
  gcBlobKey,
13
13
  IGarbageCollectionData,
14
14
  IGarbageCollectionDetailsBase,
15
- IGarbageCollectionSummaryDetails,
16
15
  ISummarizeInternalResult,
17
16
  ISummarizeResult,
18
17
  ISummarizerNodeConfigWithGC,
@@ -80,9 +79,6 @@ export class SummarizerNodeWithGC extends SummarizerNode implements IRootSummari
80
79
  // removed (from runGC flag in IContainerRuntimeOptions), this should be changed to be have no routes by default.
81
80
  private usedRoutes: string[] = [""];
82
81
 
83
- // If this node is marked as unreferenced, the time when it marked as such.
84
- private unreferencedTimestampMs: number | undefined;
85
-
86
82
  // True if GC is disabled for this node. If so, do not track GC specific state for a summary.
87
83
  private readonly gcDisabled: boolean;
88
84
 
@@ -124,22 +120,6 @@ export class SummarizerNodeWithGC extends SummarizerNode implements IRootSummari
124
120
  });
125
121
  }
126
122
 
127
- /**
128
- * @deprecated Renamed to {@link SummarizerNodeWithGC.getBaseGCDetails}.
129
- */
130
- public getGCSummaryDetails(): IGarbageCollectionSummaryDetails {
131
- return this.getBaseGCDetails();
132
- }
133
-
134
- // Returns the GC details to be added to this node's summary and is used to initialize new nodes' GC state.
135
- public getBaseGCDetails(): IGarbageCollectionDetailsBase {
136
- return {
137
- gcData: this.gcData,
138
- usedRoutes: this.usedRoutes,
139
- unrefTimestamp: this.unreferencedTimestampMs,
140
- };
141
- }
142
-
143
123
  /**
144
124
  * Loads state from this node's initial GC summary details. This contains the following data from the last summary
145
125
  * seen by the server for this client:
@@ -163,7 +143,6 @@ export class SummarizerNodeWithGC extends SummarizerNode implements IRootSummari
163
143
  // Sort the used routes because we compare them with the current used routes to check if they changed between
164
144
  // summaries. Both are sorted so that the order of elements is the same.
165
145
  this.referenceUsedRoutes = baseGCDetails.usedRoutes?.sort();
166
- this.unreferencedTimestampMs = baseGCDetails.unrefTimestamp;
167
146
  }
168
147
 
169
148
  public async summarize(
@@ -379,7 +358,7 @@ export class SummarizerNodeWithGC extends SummarizerNode implements IRootSummari
379
358
  return this.usedRoutes.includes("") || this.usedRoutes.includes("/");
380
359
  }
381
360
 
382
- public updateUsedRoutes(usedRoutes: string[], gcTimestamp?: number) {
361
+ public updateUsedRoutes(usedRoutes: string[]) {
383
362
  // Sort the given routes before updating. This will ensure that the routes compared in hasUsedStateChanged()
384
363
  // are in the same order.
385
364
  this.usedRoutes = usedRoutes.sort();
@@ -389,16 +368,6 @@ export class SummarizerNodeWithGC extends SummarizerNode implements IRootSummari
389
368
  if (!this.gcDisabled && this.isTrackingInProgress()) {
390
369
  this.wipSerializedUsedRoutes = JSON.stringify(this.usedRoutes);
391
370
  }
392
-
393
- if (this.isReferenced()) {
394
- this.unreferencedTimestampMs = undefined;
395
- return;
396
- }
397
-
398
- // If this node just became unreferenced, update its unreferencedTimestampMs.
399
- if (this.unreferencedTimestampMs === undefined) {
400
- this.unreferencedTimestampMs = gcTimestamp;
401
- }
402
371
  }
403
372
 
404
373
  /**