Commit 9dc59e9a authored by unknown's avatar unknown

UUID() bug that manifests itself on low-res (<1 us) timers only

(and not critical at all as it does not result in repeated values)

parent 8b11f1c1
......@@ -2754,7 +2754,14 @@ String *Item_func_uuid::val_str(String *str)
tv++;
}
else
nanoseq=0;
{
if (nanoseq)
{
tv-=nanoseq;
nanoseq=0;
}
DBUG_ASSERT(tv > uuid_time);
}
uuid_time=tv;
pthread_mutex_unlock(&LOCK_uuid_generator);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment