Skip to content

Conversation

@ShooterIT
Copy link
Collaborator

/* Keep the client in the main thread to avoid data races between the
* connWrite call in startBgsaveForReplication and the client's event
* handler in IO threads. */
if (c->tid != IOTHREAD_MAIN_THREAD_ID) keepClientInMainThread(c);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is very rare case, so i don't plan to back port it to old version, wdyt?

Copy link
Owner

Choose a reason for hiding this comment

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

okay, we also had a memory leak issue in cluster.c, perhaps we can list them as fixes in the PR description.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

makes sense

@ShooterIT ShooterIT requested a review from tezc October 16, 2025 06:45
@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (cluster-asm@2650b31). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             cluster-asm     #105   +/-   ##
==============================================
  Coverage               ?   75.99%           
==============================================
  Files                  ?      131           
  Lines                  ?    76249           
  Branches               ?        0           
==============================================
  Hits                   ?    57947           
  Misses                 ?    18302           
  Partials               ?        0           
Files with missing lines Coverage Δ
src/cluster_asm.c 91.19% <100.00%> (ø)
src/iothread.c 87.83% <100.00%> (ø)
src/replication.c 87.33% <100.00%> (ø)
src/server.h 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ShooterIT ShooterIT merged commit 40441d4 into tezc:cluster-asm Oct 16, 2025
16 of 17 checks passed
@ShooterIT ShooterIT deleted the asm-io-threads branch October 16, 2025 13:05
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.

3 participants