[wp-trac] [WordPress Trac] #44568: Two concurrent post deletes results in invalid return values

WordPress Trac noreply at wordpress.org
Sat Jul 14 18:57:48 UTC 2018


#44568: Two concurrent post deletes results in invalid return values
--------------------------+------------------------------
 Reporter:  ajmccluskey   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by soulseekah):

 Hey there, welcome to Trac! Thanks for your ticket.

 WordPress operations are non-atomic. WordPress on the whole is not thread-
 safe. This means that calling most of the APIs that interact with the
 database is risky.

 If you need to protect your resources from concurrent operations you'll
 have to perform synchornization (mutexing) yourself.

 Rewriting WordPress to be thread-safe means rewriting like 80% of its
 APIs... a very daunting task. To my knowledge there haven't been any
 attempts at even trying to include synchronization to API calls. Perhaps
 it's time...

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44568#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list