We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2a5144 commit 4bfc792Copy full SHA for 4bfc792
1 file changed
src/fork_gc.c
@@ -549,7 +549,7 @@ static FGCError FGC_parentHandleNumeric(ForkGC *gc) {
549
// Node-level staleness is handled by the generational arena inside
550
// NumericRangeTree_ApplyGcEntry.
551
if (!rt) {
552
- FieldSpec *fs = IndexSpec_GetFieldWithLength(_sctx.spec, fieldName, fieldNameLen);
+ const FieldSpec *fs = IndexSpec_GetFieldWithLength(_sctx.spec, fieldName, fieldNameLen);
553
// Cast is safe: openNumericOrGeoIndex only mutates fs when create_if_missing is true.
554
rt = openNumericOrGeoIndex(_sctx.spec, (FieldSpec *)fs, DONT_CREATE_INDEX);
555
if (!rt || NumericRangeTree_GetUniqueId(rt) != rtUniqueId) {
0 commit comments