You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if you can do a record level lock for read/write...
fs.flock(fd, 'sh', function(err){
fs.flockRead(bytesToRead, function(err, buffer){
//buffer should be the bytes read after an exclusive lock of that record
// offset at the current position, for the length of the bytes requested to read.
});
fs.flockWrite(buffer, function(err){})
});
The text was updated successfully, but these errors were encountered:
I think it's only possible on Windows (not sure if there's mechanisms to do
this on Unix-like OS's). It seems like a terribly fragile piece of
technology to use, and must be NTFS only.
It would be nice if you can do a record level lock for read/write...
The text was updated successfully, but these errors were encountered: