Skip to content

Commit

Permalink
Remove the PagedFile.force method because it already has a flushAndFo…
Browse files Browse the repository at this point in the history
…rce method
  • Loading branch information
chrisvest committed Jun 23, 2015
1 parent 32e3ad9 commit a53edb7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
Expand Up @@ -146,11 +146,6 @@ public interface PagedFile extends AutoCloseable
*/
void flushAndForce() throws IOException;

/**
* Force all changes to this file handle down to disk. Does not flush dirty pages.
*/
void force() throws IOException;

/**
* Get the file-page-id of the last page in the file.
*
Expand Down
Expand Up @@ -197,20 +197,15 @@ void flushAndForceInternal( FlushEventOpportunity flushOpportunity ) throws IOEx
}
}
}
force();

swapper.force();
}
finally
{
pageCache.unpauseBackgroundFlushTask();
}
}

@Override
public void force() throws IOException
{
swapper.force();
}

@Override
public long getLastPageId()
{
Expand Down
Expand Up @@ -279,11 +279,6 @@ public void flushAndForce() throws IOException
cursors[PF_EXCLUSIVE_LOCK].flush();
}

@Override
public void force() throws IOException
{ // no-op
}

@Override
public long getLastPageId() throws IOException
{
Expand Down
Expand Up @@ -233,12 +233,6 @@ public void flushAndForce() throws IOException
pagedFile.flushAndForce();
}

@Override
public void force() throws IOException
{
pagedFile.force();
}

@Override
public long getLastPageId() throws IOException
{
Expand Down

0 comments on commit a53edb7

Please sign in to comment.