diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-12-14 00:26:46 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-12-14 00:26:46 -0500 |
commit | e97dddd66b732bd296c547f985b1c2bf62cb1edf (patch) | |
tree | 0a847897386830094b0667b57c1288db7255935f /db/pdfile.cpp | |
parent | 0a854688dfc9e769b2399053a8eb00ac9b6b2a48 (diff) | |
download | mongo-e97dddd66b732bd296c547f985b1c2bf62cb1edf.tar.gz |
initialize bool
Diffstat (limited to 'db/pdfile.cpp')
-rw-r--r-- | db/pdfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp index 6f7d10516f8..758ac47156a 100644 --- a/db/pdfile.cpp +++ b/db/pdfile.cpp @@ -948,9 +948,9 @@ namespace mongo { below. that is suboptimal, but it's pretty complicated to do it the other way without rollbacks... */ vector<IndexChanges> changes; - bool changedId; + bool changedId = false; getIndexChanges(changes, *d, objNew, objOld, changedId); - uassert( 13596 , "cannot change _id of a document " , ! changedId ); + uassert( 13596 , str::stream() << "cannot change _id of a document old:" << objOld << " new:" << objNew , ! changedId ); dupCheck(changes, *d, dl); if ( toupdate->netLength() < objNew.objsize() ) { |