Sync auto increment cache local_sync value to avoid inner table access
This commit is contained in:
parent
7f927bddc2
commit
534e923726
@ -1356,7 +1356,9 @@ int ObAutoincrementService::sync_insert_value_global(AutoincParam ¶m)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (0 != param.global_value_to_sync_) {
|
||||
if (param.autoinc_mode_is_order_) {
|
||||
if (param.global_value_to_sync_ < param.autoinc_auto_increment_) {
|
||||
// do nothing, insert value directly
|
||||
} else if (param.autoinc_mode_is_order_) {
|
||||
if (OB_FAIL(sync_insert_value_order(param,
|
||||
param.cache_handle_,
|
||||
param.global_value_to_sync_))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user