[wp-trac] [WordPress Trac] #34304: get_and_update_post_meta for atomic post meta operations

WordPress Trac noreply at wordpress.org
Wed Oct 14 23:51:27 UTC 2015


#34304: get_and_update_post_meta for atomic post meta operations
-----------------------------+------------------------------
 Reporter:  lpghatguy        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Database         |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by lpghatguy):

 I've attached a proof-of-concept implementation that uses MySQL `GET_LOCK`
 and `RELEASE_LOCK` without checking timeouts right now. It handles no edge
 cases but is otherwise functional for single-value post and user metadata.

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


More information about the wp-trac mailing list