In my server interface provided by Sun the specification says that the create() method should create a new record in the database with the possibility of reusing a deleted record. What exactly does this mean?
Deleted records are marked with a byte '1' so does this mean that if a record is marked as deleted in the file/database, i should create the new record by reusing the storage space on file taken up by a deleted record?
I would just like clarification on this issue and what the spec. means here.
posted 9 years ago
If you look at the interface description of the deleteRecord() method of your assignment, you should notice that the associated disk space of the deleted method is made available for reuse. This means that your create() method can actually overwrite a deleted record.