-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSFS | Replace ChunkFS with FileWriter #8577
base: master
Are you sure you want to change the base?
Conversation
81817fe
to
1168f81
Compare
Signed-off-by: Romy <[email protected]>
1168f81
to
94c3ef9
Compare
const md5_enabled = | ||
config.NSFS_CALCULATE_MD5 || | ||
this.force_md5_etag || | ||
object_sdk?.requesting_account?.force_md5_etag; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use _is_force_md5_enabled() - it probably didn't exist when I wrote this code
file_writer.on('error', err => dbg.error('namespace_fs._upload_stream: error occured on FileWriter: ', err)); | ||
file_writer.on('finish', arg => dbg.error('namespace_fs._upload_stream: finish occured on stream FileWriter: ', arg)); | ||
file_writer.on('close', arg => dbg.error('namespace_fs._upload_stream: close occured on stream FileWriter: ', arg)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these error prints attempts to debug the Transform stream issues? still needed?
for (const buf of buffers) { | ||
// @ts-ignore | ||
if (buf.buffer_pool_release_callback) buf.buffer_pool_release_callback(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was a special code I added to test the nodejs changes I proposed for incoming http buffer pooling.
we can remove it for now.
Explain the changes
Issues: Fixed #xxx / Gap #xxx
Testing Instructions: