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 Khuzhin Eric Milkie
Azat Khuzhin

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 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
Eric Milkie
Collaborator

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

Azat Khuzhin

Thanks

Eric Milkie milkie was assigned
Eric Milkie milkie merged commit c41a106 into from
Eric Milkie
Collaborator

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

Azat Khuzhin

Done

Azat Khuzhin azat referenced this pull request from a commit in azat/mongo
Azat Khuzhin 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 Goh 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 Goh benety referenced this pull request from a commit
Azat Khuzhin 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 Khuzhin 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 Khuzhin

    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
2  src/mongo/db/d_concurrency.cpp
View
@@ -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.