Skip to content

Loading…

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

Merged
merged 1 commit into from

2 participants

@azat

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 azat Write "db level locking enabled: %u" to stderr instead of stdout
Because it do malformed mongodump output files, if it write to stdout
87589db
@milkie
mongodb member

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

@azat

Thanks

@milkie milkie was assigned
@milkie milkie merged commit c41a106 into mongodb:master
@milkie
mongodb member

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

@azat

Done

@azat azat added a commit to azat-archive/mongo that referenced this pull request
@azat azat 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
@benety benety changed the title from Write "db level locking enabled: %u" to stderr instead of stdout to SERVER-5532 Write "db level locking enabled: %u" to stderr instead of stdout
@benety benety added a commit that referenced this pull request
@azat azat SERVER-4345 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)`

This closes #205

Signed-off-by: Benety Goh <benety@mongodb.com>
962dae3
@jedestep jedestep added a commit to jedestep/mongo that referenced this pull request
@azat azat SERVER-4345 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)`

This closes #205

Signed-off-by: Benety Goh <benety@mongodb.com>
bc9c573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2012
  1. @azat

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

    azat committed
    Because it do malformed mongodump output files, if it write to stdout
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mongo/db/d_concurrency.cpp
View
2 src/mongo/db/d_concurrency.cpp
@@ -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;
Something went wrong with that request. Please try again.