[wp-trac] [WordPress Trac] #27424: Dubious code flow in add_metadata()

WordPress Trac noreply at wordpress.org
Sat Mar 15 19:14:24 UTC 2014


#27424: Dubious code flow in add_metadata()
--------------------------------+------------------------------
 Reporter:  Denis-de-Bernardy   |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  3.8.1
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by nacin):

 I'm not sure. add_metadata() doesn't do any cache fetching or setting
 operations. The issue would be that a race between two add_metadata()
 calls would cause the second one to fail. At that point, the DB and cache
 should still be the same.

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


More information about the wp-trac mailing list