Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Writing to a file atomically without renaming

by nomis80 (Sexton)
on Jun 30, 2005 at 19:45 UTC ( [id://471448]=note: print w/replies, xml ) Need Help??


in reply to Re: Writing to a file atomically without renaming
in thread Writing to a file atomically without renaming

Yes, it must be stored in the filesystem. I'm starting to wonder how exactly RDBMS implement transactions. I don't think they use the rename() trick...
  • Comment on Re^2: Writing to a file atomically without renaming

Replies are listed 'Best First'.
Re^3: Writing to a file atomically without renaming
by waswas-fng (Curate) on Jun 30, 2005 at 20:02 UTC
    They write blocks of data to holes in the file or at the end of the file, and if the transaction is committed they then change pointers in the tablespace to the new data, else if rollback they leave the pointers at the old data locations.


    -Waswas

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://471448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found