syncer: clear cache array to reclaim some memory

part of #626
This commit is contained in:
Girish Ramakrishnan
2019-04-01 14:53:34 -07:00
parent 519552083b
commit 9063e8f4a4

View File

@@ -150,6 +150,7 @@ function sync(dataLayout, taskProcessor, concurrency, callback) {
traverse(readDataLayoutTree(dataLayout), '');
advanceCache(''); // remove rest of the cache entries
cache = []; // clear cache to clear up some memory
safe.fs.closeSync(newCacheFd);