提交 280861ae 编写于 作者: M Megvii Engine Team

feat(atlas): add acl.json support, use for profile

GitOrigin-RevId: c123806fefdfa1620adb9a5aa2e5ca8586f449b7
上级 1e0fb127
......@@ -378,11 +378,13 @@ public:
void init() {
MGB_LOCK_GUARD(mtx);
if (!initialized) {
auto acl_err = aclInit(nullptr);
const char* config_path =
MGB_GETENV("MGB_ATLAS_PROFILE_JSON");
auto acl_err = aclInit(config_path);
initialized = acl_err == ACL_ERROR_NONE;
mgb_throw_if(!initialized, AtlasError,
"acl initialize failed: (acl: %d)",
static_cast<int>(acl_err));
"acl initialize failed: (acl: %s)",
megcore::atlas::get_error_str(acl_err));
}
}
~InitStatus() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册