mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-25 06:25:13 +00:00
Add obj_cache in session
This commit is contained in:
@@ -31,7 +31,7 @@ seaf_metric_manager_new (struct _SeafileSession *seaf)
|
||||
mgr->seaf = seaf;
|
||||
|
||||
// redis cache
|
||||
mgr->priv->cache = objcache_new ();
|
||||
mgr->priv->cache = seaf->obj_cache;
|
||||
|
||||
return mgr;
|
||||
}
|
||||
|
@@ -131,6 +131,8 @@ load_config (SeafileSession *session, const char *config_file_path)
|
||||
"general", "cloud_mode",
|
||||
NULL);
|
||||
|
||||
session->obj_cache = objcache_new ();
|
||||
|
||||
|
||||
notif_enabled = g_key_file_get_boolean (config,
|
||||
"notification", "enabled",
|
||||
|
@@ -30,6 +30,7 @@
|
||||
#include "index-blocks-mgr.h"
|
||||
#include "notif-mgr.h"
|
||||
#include "http-tx-mgr.h"
|
||||
#include "obj-cache.h"
|
||||
#include "metric-mgr.h"
|
||||
|
||||
#include <searpc-client.h>
|
||||
@@ -99,6 +100,8 @@ struct _SeafileSession {
|
||||
// For metric
|
||||
SeafMetricManager *metric_mgr;
|
||||
|
||||
ObjCache *obj_cache;
|
||||
|
||||
gboolean log_to_stdout;
|
||||
|
||||
gboolean is_repair;
|
||||
|
Reference in New Issue
Block a user