Skip to content

Commit

Permalink
Write "db level locking enabled: %u" to stderr instead of stdout
Browse files Browse the repository at this point in the history
Because it do malformed mongodump output files, if it write to stdout
  • Loading branch information
azat committed Apr 6, 2012
1 parent 7ded96c commit 87589db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/d_concurrency.cpp
Expand Up @@ -40,7 +40,7 @@ namespace mongo {

struct atstartup {
atstartup() {
cout << "db level locking enabled: " << ( DB_LEVEL_LOCKING_ENABLED ) << endl;
cerr << "db level locking enabled: " << ( DB_LEVEL_LOCKING_ENABLED ) << endl;
}
} atst;

Expand Down

1 comment on commit 87589db

@milkie
Copy link

@milkie milkie commented on 87589db Apr 6, 2012

Choose a reason for hiding this comment

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

Thanks, I'll commit this. We're going to get rid of the printout before the production release, obviously.

Please sign in to comment.