Skip to content

Commit

Permalink
fix incorrect write buffer size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mraway committed Apr 30, 2013
1 parent 331e7e4 commit c75d78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disk_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class RecordWriter
mFileName(fname)
{
mBuffer = new char[Env::GetWriteBufSize()];
mOutput.rdbuf()->pubsetbuf(mBuffer, Env::GetReadBufSize());
mOutput.rdbuf()->pubsetbuf(mBuffer, Env::GetWriteBufSize());
if (append) {
mOutput.open(mFileName.c_str(), ios::out | ios::binary | ios::app);
}
Expand Down

0 comments on commit c75d78f

Please sign in to comment.