From 327ccee4ed1acef16640c8885dfa6a0f11ee0e48 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Thu, 3 Jun 2010 10:02:38 -0400 Subject: [PATCH] more debugging --- db/indexkey.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/db/indexkey.cpp b/db/indexkey.cpp index f59aa59a3ea..70dd770d0ec 100644 --- a/db/indexkey.cpp +++ b/db/indexkey.cpp @@ -119,7 +119,11 @@ namespace mongo { arrElt = e; } // enforce single array path here - uassert( 10088 , "cannot index parallel arrays", e.type() != Array || e.rawdata() == arrElt.rawdata() ); + if ( e.type() == Array && e.rawdata() != arrElt.rawdata() ){ + stringstream ss; + ss << "cannot index parallel arrays [" << e.fieldName() << "] [" << arrElt.fieldName() << "]"; + uasserted( 10088 , ss.str() ); + } } bool allFound = true; // have we found elements for all field names in the key spec?