Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1069050
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 19, 6:25 AM
Size
797 B
Mime Type
text/x-diff
Expires
Mon, Jul 21, 6:25 AM (21 h, 59 m)
Engine
blob
Format
Raw Data
Handle
692031
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/5.2.x/core/kernel/application.php
===================================================================
--- branches/5.2.x/core/kernel/application.php (revision 16830)
+++ branches/5.2.x/core/kernel/application.php (revision 16831)
@@ -2515,8 +2515,12 @@
{
$table_name = TABLE_PREFIX . 'IdGenerator';
+ $this->Conn->nextQueryFromMaster = true;
$this->Conn->Query('LOCK TABLES ' . $table_name . ' WRITE');
+
$this->Conn->Query('UPDATE ' . $table_name . ' SET lastid = lastid + 1');
+
+ $this->Conn->nextQueryFromMaster = true;
$id = $this->Conn->GetOne('SELECT lastid FROM ' . $table_name);
if ( $id === false ) {
@@ -2524,6 +2528,7 @@
$id = 2;
}
+ $this->Conn->nextQueryFromMaster = true;
$this->Conn->Query('UNLOCK TABLES');
return $id - 1;
Event Timeline
Log In to Comment