diff options
author | Aaron <aaron@10gen.com> | 2009-03-26 15:13:56 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-03-26 15:13:56 -0400 |
commit | a6bfe75b88244fb279a68dd226ef0741f66598b7 (patch) | |
tree | 242b03dad3ae342d351242f5cd98325818b5ed0a | |
parent | 6b1613adb6348cd9a99a199a9258839188d80717 (diff) | |
parent | dc224ae3c08ac906b6d44be27c01b0b0e717370b (diff) | |
download | mongo-a6bfe75b88244fb279a68dd226ef0741f66598b7.tar.gz |
Merge branch 'master' of git@github.com:mongodb/mongo
-rw-r--r-- | SConstruct | 4 | ||||
-rw-r--r-- | db/db.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index ffe4ef9c626..114565f21fe 100644 --- a/SConstruct +++ b/SConstruct @@ -258,7 +258,7 @@ elif "sunos5" == os.sys.platform: useJavaHome = True javaHome = "/usr/lib/jvm/java-6-sun/" javaOS = "solaris" - env.Append( CPPDEFINES=[ "__linux__" ] ) + env.Append( CPPDEFINES=[ "__linux__" , "__sunos__" ] ) elif "win32" == os.sys.platform: windows = True @@ -714,7 +714,7 @@ def jsDirTestSpec( dir ): return mongo[0].abspath + " --nodb " + jsSpec( [ dir, "*.js" ] ) # These tests require the mongo shell -if not onlyServer: +if not onlyServer and not noshell: addSmoketest( "smokeJs", [ "mongo" ], [ mongo[0].abspath + " " + jsSpec( [ "_runner.js" ] ) ] ) addSmoketest( "smokeClone", [ "mongo", "mongod" ], [ jsDirTestSpec( "clone" ) ] ) addSmoketest( "smokeRepl", [ "mongo", "mongod" ], [ jsDirTestSpec( "repl" ) ] ) diff --git a/db/db.cpp b/db/db.cpp index 892efc32158..6632e904dc3 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -327,7 +327,7 @@ namespace mongo { Timer startupSrandTimer; void acquirePathLock() { -#if !defined(_WIN32) +#if !defined(_WIN32) and !defined(__sunos__) string name = ( boost::filesystem::path( dbpath ) / "mongod.lock" ).native_file_string(); int f = open( name.c_str(), O_RDONLY | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO ); massert( "Unable to create / open lock file for dbpath: " + name, f > 0 ); |