summaryrefslogtreecommitdiff
path: root/db/instance.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-03 12:44:50 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-03 12:44:50 -0500
commitff34ec6348c5cd2fa3a40c685fc2037335925806 (patch)
tree6f032df7978c8fd86152092c5ec2b9d20cf33284 /db/instance.h
parent1439431b7ef07d4c21dfb1585841e037502b0345 (diff)
downloadmongo-ff34ec6348c5cd2fa3a40c685fc2037335925806.tar.gz
put diaglog in dbpath rather than cwd
Diffstat (limited to 'db/instance.h')
-rw-r--r--db/instance.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/instance.h b/db/instance.h
index 0260e06d171..2aa2e86a516 100644
--- a/db/instance.h
+++ b/db/instance.h
@@ -45,7 +45,7 @@ namespace mongo {
if ( ! f && level ){
log() << "diagLogging = " << level << endl;
stringstream ss;
- ss << "diaglog." << hex << time(0);
+ ss << dbpath << "/diaglog." << hex << time(0);
string name = ss.str();
f = new ofstream(name.c_str(), ios::out | ios::binary);
if ( ! f->good() ) {