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

[IO][MongoDBOutputFormat] Add API to commit BSON objs #9

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

ClydeZhao
Copy link

No description provided.

records_vector_.push_back(obj.copy());

if (records_vector_.size() >= kMaxNumberOfRecord)
flush_all();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will make the method blocking?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but if commit() is invoked in ASIO, it does not matter, right?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I got it.

@ddmbr ddmbr merged commit f565914 into ddmbr:h4 Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants