You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx.set_status_info("[INTERPRETER] Building execution pipeline");
105
105
ctx.check_aborting().with_context(make_error)?;
106
106
107
-
let enable_disk_cache = matchLicenseManagerSwitch::instance()
108
-
.check_license(ctx.get_license_key())
107
+
letmut allow_disk_cache = false;
109
108
{
110
-
Ok(_) => true,
111
-
Err(e) => {
112
-
let msg =
113
-
format!("[INTERPRETER] CRITICAL ALERT: License validation FAILED - enterprise features DISABLED, System may operate in DEGRADED MODE with LIMITED CAPABILITIES and REDUCED PERFORMANCE. Please contact us at https://www.databend.com/contact-us/ or email hi@databend.com to restore full functionality: {}",
114
-
e);
115
-
log::error!("{}", msg);
116
-
117
-
// Also log at warning level to ensure the message could be propagated to client applications
118
-
// (e.g., BendSQL and MySQL interactive sessions)
119
-
log::warn!("{}", msg);
120
-
false
109
+
let license_key = ctx.get_license_key();
110
+
if !license_key.is_empty(){
111
+
let validate_result = LicenseManagerSwitch::instance().check_license(license_key);
112
+
allow_disk_cache = validate_result.is_ok();
113
+
ifletErr(e) = validate_result {
114
+
let msg =
115
+
format!("[INTERPRETER] CRITICAL ALERT: License validation FAILED - enterprise features DISABLED, System may operate in DEGRADED MODE with LIMITED CAPABILITIES and REDUCED PERFORMANCE. Please contact us at https://www.databend.com/contact-us/ or email hi@databend.com to restore full functionality: {}",
116
+
e);
117
+
log::error!("{}", msg);
118
+
119
+
// Also log at warning level to ensure the message could be propagated to client applications
0 commit comments