diff options
author | Aaron <aaron@10gen.com> | 2009-04-13 17:59:39 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-13 17:59:39 -0400 |
commit | 2e539cbdfece9020725f6ea07cdf08825a5fe627 (patch) | |
tree | 717b92eb09f649805932dfdc2d458c6003cc176d | |
parent | e95e6b4ced8ba2e3b7f5e71be6452f16c5949faf (diff) | |
download | mongo-2e539cbdfece9020725f6ea07cdf08825a5fe627.tar.gz |
disable test updating objects without id MINOR
-rw-r--r-- | db/pdfile.h | 2 | ||||
-rw-r--r-- | dbtests/repltests.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/db/pdfile.h b/db/pdfile.h index 93ced0f2c57..fc8ba529efb 100644 --- a/db/pdfile.h +++ b/db/pdfile.h @@ -460,5 +460,7 @@ namespace mongo { assert( dl.a() != -1 ); return database->getFile(dl.a())->recordAt(dl); } + + void ensureHaveIdIndex(const char *ns); } // namespace mongo diff --git a/dbtests/repltests.cpp b/dbtests/repltests.cpp index 1f63fb2f0a2..bc912f9dca8 100644 --- a/dbtests/repltests.cpp +++ b/dbtests/repltests.cpp @@ -42,6 +42,7 @@ namespace ReplTests { createOplog(); dblock lk; setClient( ns() ); + ensureHaveIdIndex( ns() ); } ~Base() { try { @@ -712,7 +713,8 @@ namespace ReplTests { add< Idempotence::UpsertInsertIdMod >(); add< Idempotence::UpsertInsertSet >(); add< Idempotence::UpsertInsertInc >(); - add< Idempotence::UpdateWithoutPreexistingId >(); + // Don't worry about this until someone wants this functionality. +// add< Idempotence::UpdateWithoutPreexistingId >(); add< Idempotence::Remove >(); add< Idempotence::RemoveOne >(); add< Idempotence::FailingUpdate >(); |