Skip to content

Commit

Permalink
Ensure lock file exists (#282)
Browse files Browse the repository at this point in the history
* Ensure lock file exists

* fixing lock manager bugs

* reworking threading

* clear buffer instead of setting limit

---------

Co-authored-by: hg-ms <[email protected]>
  • Loading branch information
fh-ms and hg-ms authored Oct 9, 2024
1 parent 82052df commit c996970
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ public default String identifier()
public boolean delete();

public void moveTo(AWritableFile target);



public void truncate(final long newLength);



public static VarString assembleNameAndSize(final VarString vs, final StorageFile file)
{
return vs.add(file.file().identifier() + "[" + file.file().size() + "]");
Expand Down Expand Up @@ -361,6 +363,7 @@ public final synchronized long copyFrom(
}
}

@Override
public synchronized void truncate(final long newLength)
{
this.ensureWritable().truncate(newLength);
Expand Down
Loading

0 comments on commit c996970

Please sign in to comment.