List:Commits« Previous MessageNext Message »
From:Daniel Fischer Date:November 18 2010 7:05am
Subject:RE: Is the "rename" operation atomic for all platforms and possible filesystems?
View as plain text  
Hi,

> Is the my_rename(...) function provided by mysql source code atomic
> for all platforms and possible filesystems?

No. On some UNIXes, rename() isn't atomic, e.g. Mac OS X. On OSes that 
don't have rename(), the implementation in my_rename() isn't atomic 
because it translates to at least two syscalls.


Daniel

-- 
Daniel Fischer, MySQL Tech Lead Build     49.011, 8.376      +49 170 4447185
ORACLE Deutschland B.V. & Co. KG, Riesstr. 25, 80992 München - HRA MUC 95603
Komplementaer: ORACLE Deutschl. Verw. B.V., Rijnzathe 6, 3454PV De Meern, NL
Geschaeftsfuehrer:  Juergen Kunz, Marcel van de Molen, Alexander van der Ven


Thread
Is the "rename" operation atomic for all platforms and possiblefilesystems?Daogang Qu18 Nov
  • RE: Is the "rename" operation atomic for all platforms and possible filesystems?Daniel Fischer18 Nov
    • Re: Is the "rename" operation atomic for all platforms and possiblefilesystems?Daogang Qu19 Nov