Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in WriteAppender.cc #3

Closed
GoogleCodeExporter opened this issue Feb 23, 2016 · 4 comments
Closed

bug in WriteAppender.cc #3

GoogleCodeExporter opened this issue Feb 23, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

bug in file 
kfs-0.5/src/cc/libkfsClient/WriteAppender.cc
http://code.google.com/p/kosmosfs/source/browse/trunk/src/cc/libkfsClient/WriteA
ppender.cc

void SpaceRelease()
{
    if (mSpaceAvailable <= 0) {
            StartAppend();
        return;
    }
        Reset(mSpaceReleaseOp);
        mSpaceReleaseOp.chunkId      = mAllocOp.chunkId;
//! bug: should mAllocOp.chunkVersion; NOT ,
        mSpaceReleaseOp.chunkVersion = mAllocOp.chunkVersion; //! , --> ;
    mSpaceReleaseOp.writeInfo    = mWriteIds;
    mSpaceReleaseOp.numBytes     = size_t(mSpaceAvailable);
    Enqueue(mSpaceReleaseOp);
}
chenbk

Original issue reported on code.google.com by chenb...@gmail.com on 30 Nov 2011 at 3:10

@GoogleCodeExporter
Copy link
Author

Original comment by srirams...@gmail.com on 16 Dec 2011 at 6:51

@GoogleCodeExporter
Copy link
Author

Thanks for the find.  I have checked in a fix.

Original comment by srirams...@gmail.com on 16 Dec 2011 at 6:51

@GoogleCodeExporter
Copy link
Author

The change for this is done now.

Original comment by srirams...@gmail.com on 16 Dec 2011 at 6:53

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Line 862 seems also suffer this issue.

Original comment by robinlee...@gmail.com on 22 Dec 2011 at 9:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant