修改ustore_verify_level默认值为fast,ustore_verify_module为upage&ubtree
This commit is contained in:
@ -14181,8 +14181,8 @@ static void InitUStoreAttr()
|
||||
u_sess->attr.attr_storage.enable_candidate_buf_usage_count = DEFAULT_CAND_LIST_USAGE_COUNT;
|
||||
u_sess->attr.attr_storage.ustats_tracker_naptime = DEFAULT_USTATS_TRACKER_NAPTIME;
|
||||
u_sess->attr.attr_storage.umax_search_length_for_prune = DEFAULT_UMAX_PRUNE_SEARCH_LEN;
|
||||
u_sess->attr.attr_storage.ustore_verify_level = USTORE_VERIFY_DEFAULT;
|
||||
u_sess->attr.attr_storage.ustore_verify_module = USTORE_VERIFY_MOD_INVALID;
|
||||
u_sess->attr.attr_storage.ustore_verify_level = USTORE_VERIFY_FAST;
|
||||
u_sess->attr.attr_storage.ustore_verify_module = USTORE_VERIFY_MOD_UPAGE | USTORE_VERIFY_MOD_UBTREE;
|
||||
u_sess->attr.attr_storage.enable_ustore_sync_rollback = DEFAULT_SYNC_ROLLBACK;
|
||||
u_sess->attr.attr_storage.enable_ustore_async_rollback = DEFAULT_ASYNC_ROLLBACK;
|
||||
u_sess->attr.attr_storage.enable_ustore_page_rollback = DEFAULT_PAGE_ROLLBACK;
|
||||
|
||||
@ -4013,7 +4013,7 @@ static void ParseUstoreVerifyLevel(int* mLevel, char* ptoken, const char* pdelim
|
||||
} else if (strcasecmp(ptoken, "COMPLETE") == 0) {
|
||||
setVal = (int) USTORE_VERIFY_COMPLETE;
|
||||
} else {
|
||||
setVal = USTORE_VERIFY_DEFAULT;
|
||||
setVal = USTORE_VERIFY_FAST;
|
||||
ereport(LOG, (errmodule(MOD_GUC),
|
||||
errmsg("Invalid parameter settings, only support none, fast and complete value.")));
|
||||
}
|
||||
@ -4043,7 +4043,7 @@ static void ParseUstoreVerifyModule(int* moduleVal, char* ptoken, const char* pd
|
||||
if (strcasecmp(ptoken, "ALL") == 0) {
|
||||
setVal = USTORE_VERIFY_MOD_MASK;
|
||||
} else if (strcasecmp(ptoken, "NULL") == 0) {
|
||||
setVal = USTORE_VERIFY_MOD_INVALID;
|
||||
setVal = USTORE_VERIFY_MOD_UPAGE | USTORE_VERIFY_MOD_UBTREE;
|
||||
} else if (strcasecmp(ptoken, "UPAGE") == 0) {
|
||||
setVal |= USTORE_VERIFY_MOD_UPAGE;
|
||||
} else if (strcasecmp(ptoken, "UBTREE") == 0) {
|
||||
@ -4175,8 +4175,8 @@ static void ResetUstoreAttrValues()
|
||||
u_sess->attr.attr_storage.enable_ustore_sync_rollback = true;
|
||||
u_sess->attr.attr_storage.enable_ustore_async_rollback = true;
|
||||
u_sess->attr.attr_storage.enable_ustore_page_rollback = true;
|
||||
u_sess->attr.attr_storage.ustore_verify_level = USTORE_VERIFY_DEFAULT;
|
||||
u_sess->attr.attr_storage.ustore_verify_module = USTORE_VERIFY_MOD_INVALID;
|
||||
u_sess->attr.attr_storage.ustore_verify_level = USTORE_VERIFY_FAST;
|
||||
u_sess->attr.attr_storage.ustore_verify_module = USTORE_VERIFY_MOD_UPAGE | USTORE_VERIFY_MOD_UBTREE;
|
||||
u_sess->attr.attr_storage.index_trace_level = TRACE_NO;
|
||||
u_sess->attr.attr_storage.enable_log_tuple = false;
|
||||
}
|
||||
@ -4205,10 +4205,10 @@ static void ResetPrevUstoreAttrSettings(bool status[])
|
||||
u_sess->attr.attr_storage.enable_ustore_page_rollback = true;
|
||||
}
|
||||
if (!status[ENABLE_USTORE_VERIFY_LEVEL_IDX]) {
|
||||
u_sess->attr.attr_storage.ustore_verify_level = USTORE_VERIFY_DEFAULT;
|
||||
u_sess->attr.attr_storage.ustore_verify_level = USTORE_VERIFY_FAST;
|
||||
}
|
||||
if (!status[ENABLE_USTORE_VERIFY_MODULE_IDX]) {
|
||||
u_sess->attr.attr_storage.ustore_verify_module = USTORE_VERIFY_MOD_INVALID;
|
||||
u_sess->attr.attr_storage.ustore_verify_module = USTORE_VERIFY_MOD_UPAGE | USTORE_VERIFY_MOD_UBTREE;
|
||||
}
|
||||
if (!status[ENABLE_USTORE_TRACE_LEVEL_IDX]) {
|
||||
u_sess->attr.attr_storage.index_trace_level = TRACE_NO;
|
||||
|
||||
Reference in New Issue
Block a user