-
Notifications
You must be signed in to change notification settings - Fork 715
fix: rollback scc #9442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: rollback scc #9442
Conversation
|
Failed to generate code suggestions for PR |
Greptile OverviewGreptile SummaryThis PR rolls back usage of the Key Changes:
Memory management improvements:
The rollback from Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client
participant FlightHandler as Flight Handler
participant WAL as WAL Module
participant FileList as File List Storage
participant SearchFiles as SEARCHING_FILES
Client->>FlightHandler: Search Request
FlightHandler->>WAL: lock_files(files)
WAL->>SearchFiles: write().lock(file) for each file
Note over SearchFiles: Reference count incremented
FlightHandler->>WAL: lock_request(trace_id, files)
WAL->>WAL: Store files in SEARCHING_REQUESTS
FlightHandler->>FileList: set(trace_id, schema_key, files)
FileList->>FileList: Store file metadata
FlightHandler-->>Client: Stream Results
Client->>FlightHandler: Request Complete/Error
FlightHandler->>FlightHandler: clear_session_data(trace_id)
FlightHandler->>FileList: clear(trace_id)
FileList->>FileList: Remove entries + shrink_to_fit()
FlightHandler->>WAL: release_request(trace_id)
WAL->>WAL: Remove from SEARCHING_REQUESTS
WAL->>SearchFiles: write().release(file) for each file
Note over SearchFiles: Reference count decremented, removed if 0
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
14 files reviewed, no comments
fixed #9419