Skip to content

record-level locking... #35

@tracker1

Description

@tracker1

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){})
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions