Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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
Collaborator

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 from
@milkie
Collaborator

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

@azat

Done

@azat azat referenced this pull request from a commit in azat/mongo
@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 referenced this pull request from a commit
@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 referenced this pull request from a commit in jedestep/mongo
@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 authored
    Because it do malformed mongodump output files, if it write to stdout
This page is out of date. Refresh to see the latest.
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.