red5-server icon indicating copy to clipboard operation
red5-server copied to clipboard

Improve saveObject Method: Remove Persistence File for Empty SharedObject Instances

Open mercuryVM opened this issue 1 year ago • 1 comments
trafficstars

Pull Request

This pull request improves the saveObject method in the FilePersistence.java file by adding a check for empty SharedObject instances. If a SharedObject is empty (i.e., it has no attributes), the corresponding persistence file is now deleted. This prevents the server from loading outdated or unnecessary data in the future.

mercuryVM avatar Aug 18 '24 22:08 mercuryVM

Currently, even when forcing a clear on the SharedObject, its persistent data remains. This has proven to be an issue in my application, and I'm not sure if this is the correct behavior.

mercuryVM avatar Aug 18 '24 22:08 mercuryVM