Skip to content

Commit

Permalink
Item10994: Don't flood logs w/'refusing to index...'
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/MongoDBPlugin@14461 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Mar 26, 2012
1 parent d530091 commit b682c69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Foswiki/Plugins/MongoDBPlugin/DB.pm
Expand Up @@ -313,10 +313,12 @@ sub ensureIndex {
# Clear cache
delete $self->{mongoDBIndexes}{ $collection->full_name() };
}
else {
elsif ( !exists $self->{cannot_index}{$collection}{ $options->{name} } )
{
writeDebug( "$MAX_NUM_INDEXES indexes already set in "
. $collection->full_name
. ", refusing to create another for $options->{name}" );
$self->{cannot_index}{$collection}{ $options->{name} } = 1;
}
}

Expand Down

0 comments on commit b682c69

Please sign in to comment.