mirror of
https://github.com/datarhei/core.git
synced 2025-10-07 08:51:04 +08:00
Add TODO
This commit is contained in:
@@ -1808,6 +1808,7 @@ func (a *api) stop() {
|
|||||||
if a.memfs != nil {
|
if a.memfs != nil {
|
||||||
cfg := a.config.store.GetActive()
|
cfg := a.config.store.GetActive()
|
||||||
if len(cfg.Storage.Memory.Backup.Dir) != 0 {
|
if len(cfg.Storage.Memory.Backup.Dir) != 0 {
|
||||||
|
// TODO: Add option to disable backup on shutdown? Or only if in maintenance mode? Bur how do I know?
|
||||||
diskfs, err := fs.NewRootedDiskFilesystem(fs.RootedDiskConfig{
|
diskfs, err := fs.NewRootedDiskFilesystem(fs.RootedDiskConfig{
|
||||||
Root: cfg.Storage.Memory.Backup.Dir,
|
Root: cfg.Storage.Memory.Backup.Dir,
|
||||||
Logger: logger,
|
Logger: logger,
|
||||||
|
Reference in New Issue
Block a user