diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-21 10:09:49 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-22 09:16:41 -0400 |
commit | c3dc26b52adfc45f86730e862404bce024beeb04 (patch) | |
tree | 044d8bba8cfb58534c2661569fc5abd64e93aeb8 /jstests/core/convert_to_capped_nonexistant.js | |
parent | 9123d2d3263ea56d8651ba9d4cf5ad1158d939cb (diff) | |
download | mongo-c3dc26b52adfc45f86730e862404bce024beeb04.tar.gz |
SERVER-20463 DatabaseNotFound -> NamespaceNotFound
This change replaces all usages of error code 60 (DatabaseNotFound) with
error code 26 (NamespaceNotFound) and obsoletes code 60. From this point
on, error code 26 should be used for all cases where a collection or
database is not found.
Diffstat (limited to 'jstests/core/convert_to_capped_nonexistant.js')
-rw-r--r-- | jstests/core/convert_to_capped_nonexistant.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/convert_to_capped_nonexistant.js b/jstests/core/convert_to_capped_nonexistant.js index 9c3348d937a..a09ce553788 100644 --- a/jstests/core/convert_to_capped_nonexistant.js +++ b/jstests/core/convert_to_capped_nonexistant.js @@ -8,7 +8,7 @@ testDb.dropDatabase(); var result = testDb.runCommand({convertToCapped: 'foo', size: 1024}); assert.eq(result.ok, 0, "converting a nonexistent to capped worked and should not have"); assert.eq(result.code, - 60, + 26, "converting a nonexistent database to capped failed, but code has changed"); assert.eq(result.errmsg, "database convert_to_capped_nonexistent not found", |