Skip to content

Commit 358f800

Browse files
committed
fix migrate hang under race condition
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1 parent 2367740 commit 358f800

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/persistent_logger.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class PersistentLogger {
5959
undefined,
6060
{ lock: this.locking, retries: 10, backoff: 5 }
6161
);
62+
this.fh_stat = await this.fh.stat(this.fs_context);
63+
this.local_size = 0;
6264

6365
return this.fh;
6466
});

0 commit comments

Comments
 (0)