mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-08 08:52:06 +00:00
restore-daemon: make file listing 'streaming'
this prevents an oom kill when listing large directories. Without this, i'd get an oom kill in the restore vm when i tried to list a directory with ~60000 entries, but with this, i'd get the response for even 250000 entries Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
707e2b39f3
commit
057e188b1e
@ -116,6 +116,7 @@ fn get_dir_entry(path: &Path) -> Result<DirEntryAttribute, Error> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
|
streaming: true,
|
||||||
input: {
|
input: {
|
||||||
properties: {
|
properties: {
|
||||||
"path": {
|
"path": {
|
||||||
|
Loading…
Reference in New Issue
Block a user