Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Write "db level locking enabled: %u" to stderr instead of stdout #204

Merged
merged 1 commit into from about 2 years ago

2 participants

Azat Khuzhin Eric Milkie
Azat Khuzhin
azat commented April 06, 2012

Because it do malformed mongodump output files, if it write to stdout

https://jira.mongodb.org/browse/SERVER-5532

http://stackoverflow.com/a/10037024/328260

Azat Khuzhin Write "db level locking enabled: %u" to stderr instead of stdout
Because it do malformed mongodump output files, if it write to stdout
87589db
Eric Milkie
Collaborator

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

Azat Khuzhin
azat commented April 06, 2012

Thanks

Eric Milkie milkie merged commit c41a106 into from April 06, 2012
Eric Milkie milkie closed this April 06, 2012
Eric Milkie
Collaborator

Can you please sign the contributor agreement at http://10gen-corp.appspot.com/contributor

Azat Khuzhin
azat commented April 06, 2012

Done

Azat Khuzhin azat referenced this pull request from a commit in azat/mongo April 09, 2012
Azat Khuzhin Add support processing fifo files in mongorestore
Example : `./mongorestore -d test -c foo_dupl <(mongodump -d test -c foo -out - 2>/dev/null | tail -n+2)`
Example (after pull #204) : `./mongorestore -d test -c foo_dupl <(mongodump -d test -c foo -out - 2>/dev/null)`
9fd661e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 06, 2012
Azat Khuzhin Write "db level locking enabled: %u" to stderr instead of stdout
Because it do malformed mongodump output files, if it write to stdout
87589db
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/mongo/db/d_concurrency.cpp
2  src/mongo/db/d_concurrency.cpp
@@ -40,7 +40,7 @@ namespace mongo {
40 40
 
41 41
     struct atstartup { 
42 42
         atstartup() { 
43  
-            cout << "db level locking enabled: " << ( DB_LEVEL_LOCKING_ENABLED ) << endl;
  43
+            cerr << "db level locking enabled: " << ( DB_LEVEL_LOCKING_ENABLED ) << endl;
44 44
         }
45 45
     } atst;
46 46
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.