Skip to content

Remove dead cold_cache_server error code left behind by #12486#13406

Open
virajchogle wants to merge 1 commit into
apple:mainfrom
virajchogle:dev/viraj/cleanup-cold-cache-error
Open

Remove dead cold_cache_server error code left behind by #12486#13406
virajchogle wants to merge 1 commit into
apple:mainfrom
virajchogle:dev/viraj/cleanup-cold-cache-error

Conversation

@virajchogle

Copy link
Copy Markdown
Contributor

Problem

cold_cache_server (error code 1003) was tied to the Storage Cache Server feature deleted in #12486. The error is no longer thrown anywhere in the codebase, and no code matches on it. It only exists as a sentinel in the source header and the auto-generated Go binding.

Solution

Replace the entry in flow/include/flow/error_definitions.h with a // 1003 removed placeholder so the number slot stays reserved, then regenerate bindings/go/src/fdb/error_codes_generated.go. Same pattern as e50558fd7 ("Remove dead quota throttling error").

Testing done

  • Verified zero references to cold_cache_server, error_code_cold_cache_server, or ErrColdCacheServer anywhere in the tree (other than the two lines being removed).
  • Confirmed no other binding (Python, Java, etc.) carries this error code.
  • Regenerated the Go bindings file using go run ./bindings/go/src/internal/gen_errors/main.go.

@Ronitsabhaya75 Ronitsabhaya75 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks @virajchogle for clean up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants