Skip to content

Replace AtomicInteger with Integer for SlaveRefCount to fix deserialization and logic bugs#494

Open
tsautier wants to merge 1 commit intodrftpd-ng:masterfrom
tsautier:fix/issue-52-slaverefcount
Open

Replace AtomicInteger with Integer for SlaveRefCount to fix deserialization and logic bugs#494
tsautier wants to merge 1 commit intodrftpd-ng:masterfrom
tsautier:fix/issue-52-slaverefcount

Conversation

@tsautier
Copy link
Copy Markdown

@tsautier tsautier commented Jan 14, 2026

Problem

The SlaveRefCount variable for VFS inodes has issues with json-io deserialization. The AtomicInteger in _slaveRefCounts fails to deserialize properly, causing data corruption and incorrect reference tracking.

Solution

Fix the SlaveRefCount serialization/deserialization to handle AtomicInteger properly.

Changes Made

  • Modified VFS inode classes to fix SlaveRefCount handling
  • Ensured proper serialization of reference counts
  • Fixed json-io compatibility issues

Fixes: #52

@tsautier
Copy link
Copy Markdown
Author

@mvangoor @hrxcodes for review

@tsautier tsautier force-pushed the fix/issue-52-slaverefcount branch 2 times, most recently from a1aa7e5 to a8e8f90 Compare January 14, 2026 19:55
@tsautier tsautier changed the title Fix/issue 52 slaverefcount Replace AtomicInteger with Integer for SlaveRefCount to fix deserialization and logic bugs Jan 14, 2026
@tsautier tsautier force-pushed the fix/issue-52-slaverefcount branch from a8e8f90 to 68a7b8a Compare January 14, 2026 21:43
…efCount to fix deserialization and logic bugs
@tsautier tsautier force-pushed the fix/issue-52-slaverefcount branch from 68a7b8a to 301b53f Compare January 14, 2026 21:48
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.

SlaveRefCount

1 participant