uuid_short替换

可以参考源码搞一个~

ulonglong uuid_value;

void uuid_short_init()

{

uuid_value= ((((ulonglong) server_id) << 56) + (((ulonglong) server_start_time) << 24));

}

longlong Item_func_uuid_short::val_int()

{

ulonglong val;

mysql_mutex_lock(&LOCK_uuid_generator);

val= uuid_value++;

mysql_mutex_unlock(&LOCK_uuid_generator);

return (longlong) val;

}