This function does not need drupal_write_record() as the record is not used afterwards; changing that to db_merge() improves DX (callers do not need to check whether a record exists) and possibly also performance.

Patch coming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Drave Robber’s picture

Here it is.

sreynen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.