id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 5055,BP_Messages_Message::send(): Avoid new thread_id via SELECT MAX()/INSERT,wp_jeremy,,"When creating a new thread, Messaging first checks for the MAX({$bp->messages->table_name_messages}.thread_id) before making another query to do its INSERT. During this time, the referenced thread_id may no longer be the max. A solution is to put MAX() inside the INSERT query: http://stackoverflow.com/a/1587590 After the thread_id is created, a SELECT thread_id can be done on the $wpdb->insert_id row.",defect (bug),new,normal,Awaiting Contributions,Messages,1.2,normal,,needs-patch,