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)
This commit is contained in:
parent
8b11f1c106
commit
9dc59e9ac8
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user