Make enable_system_tenant_memory_limit take effect dynamicly

This commit is contained in:
obdev
2023-06-26 00:43:11 +00:00
committed by ob-robot
parent 76134a4ff4
commit 0acbec120f
7 changed files with 44 additions and 9 deletions

View File

@ -123,7 +123,7 @@ public:
void set_reserved(int64_t bytes);
int64_t get_reserved() const;
#ifdef ENABLE_500_MEMORY_LIMIT
int set_500_tenant_limit();
int set_500_tenant_limit(const bool unlimited);
#endif
int set_tenant_limit(uint64_t tenant_id, int64_t bytes);
int64_t get_tenant_limit(uint64_t tenant_id);