Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create() reusing possibly a deleted record

 
David Winters Junior
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

UrlyBird 1.3.1

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.

Thanks,
David
 
Eric Ushie
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi david,

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.

Cheers
 
David Winters Junior
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric,

Thanks this makes perfect sense now.

David
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic